Hi,

tom wrote:
> What are your experiences of file uploads? Are there general
> objections against using python/werkzeug/wsgi for large uploads, and
> then how would I best do it?
You can handle large file uploads in Werkzeug if you want.  The request
object provides a function that is called to return a file descriptor
that is used to accept your file.  By default a temporary file in the
temporary location is used if the file is large.  With some custom code
there you could directly upload to the target location.

The biggest problem with large uploads is that currently browsers do not
provide a feedback in terms of how much was uploaded.  Now of course you
can keep track on that on the server and let the uploader poll via AJAX
how many bytes were transmitted, but that's a really stupid idea.

I would probably suggest accepting the uploads in Werkzeug or your
webserver and using something like SWFUpload on the browser for user
feedback instead of an AJAX solution.


Regards,
Armin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to