RE: CGI File Uploads and Progress Bars

2005-09-08 Thread Robert Brewer
Doug Helm wrote: > I'm writing a CGI to handle very large file uploads. > I would like to include a progress bar. > ...I need to know not only the number of > bytes received, but also the total number of > incoming bytes. Here's the heart of the code: > > while afcommon.True: > lstrData

Re: CGI File Uploads and Progress Bars

2005-09-08 Thread Diez B. Roggisch
> So, bottom line: Does anyone know how to get the size of the incoming file > data without reading the whole thing into a string? Can I do something with > content_header? http://www.faqs.org/rfcs/rfc1867.html It seems that _maybe_ you can use the content-length http header. But it looks as if

CGI File Uploads and Progress Bars

2005-09-07 Thread Doug Helm
Hey, Folks: I'm writing a CGI to handle very large file uploads. I would like to include a progress bar. I think I'm about done. I have code to handle the file upload, and I think I can add an IFrame to my page which posts to check file size (so I can tell how many bytes have been received). M