[Web-SIG] transaction progress with cgi.FieldStorage

Ian Bicking ianb at colorstudy.com
Thu Dec 29 17:38:27 CET 2005

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 

Ian Bicking  /  ianb at colorstudy.com  /  http://blog.ianbicking.org

More information about the Web-SIG mailing list