On Aug 10, 2010, at 10:52 PM, NiL wrote:

> Hi,
> 
> I gave a try at abletonformstream. Very similar approach to what I
> found in gp.fileupload.
> Nicely done, I like the integration with tw.forms and tg in general,
> even better is the way to override the file storage strategy.

Cool that you like it. I hope to release it soon.

For the file-storage we now are even further, I'm pondering to extract that 
from our webapp and put it into formstream. Basically we created "resource 
managers" which allow you to map various paths to various managers, which are 
easy to configure so that they can support

 - max size constraints
 - file type constraints
 - different storage locations
 - naming schemes
 - directory naming schemes (to overcome FS-limitations with directories that 
contain large # of files & then get slow)

Not sure if that's prime-time-ready though.

> 
> Still I had some problems running the demo app
> 
> I had to replace in root.py
> from formencode.validators import Float
> with
> from formencode.validators import Number
> 
> I had an import error. Moreover validate wasn't imported
> 
> Still I got it running.

Oh, ok. Can you provide a patch?


> 
> I experience a strange behaviour, I monitor the file repos while
> uploading a file (600 Mo of data)
> The file is fully saved, nothing then for 3 to 5 seconds, and suddenly
> the progress bar starts to move rapidly from 0 to 100%.
> Is this the expected behaviour ?

No, but I guess the problem here is localhost. That's *fast*. Most probably 
what happens is that the 3 seconds are used to create the http request by the 
browser alone, and then it's moved to the server in pretty much an instant.

Then the progressbar (which is animated) is set to 100% in just one call, and 
because of the animation, that looks as if it's really fast. But in fact, it's 
faster. 

At least that is what I presume. 

What I do locally to test with "real" progress is that I put a small delay into 
the progress-indicator that get's called on each chunk. It's even configurable 
in our app. By this, you can test properly via localhost.

> 
> I also have a question, is it possible to have several files uploaded
> at once, each with its own progress bar ? (if not I can live with 2
> forms)
> 
> thanks for sharing this nice piece of software
> NiL

No. You don't get individual file-sizes over HTTP. I *think* HTML 5 supports 
that, but that's a brighter future yet to become (widespread) reality.

Diez

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to