kai wrote:
> Hi All,
> this is my first post on this list. I am working on a way to monitor the 
> progress of reading a file upload from wsgi.input.  I can currently 
> monitor the overall transfer and when individual files of a multiple 
> file upload are completed. The ultimate goal of this is to be able to 
> display a progress meter when someone is uploading a file.
> 
> To do this I subclassed cgi.FieldStorage but when I finished I had 
> modified most of the non-trivial methods just to hook in something to 
> monitor the transfer progress, oops.
> 
> Has anyone else found FieldStorage insufficient for certain tasks?
> Is there a general need for a more flexible FieldStorage replacement?

Incidentally, one way I've considered implementing this is to simply 
write the entire request body to a file, and parse it later, probably in 
the context of whatever framework I'm using (but typical web frameworks 
don't actually deal well with tracking an upload, hence a custom WSGI 
application).

-- 
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org
_______________________________________________
Web-SIG mailing list
[email protected]
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to