go ahead... be a heretic | |
PerlMonks |
Re: (crazyinsomniac) Re: Re: (crazyinsomniac) Re: File upload progress?by chipmunk (Parson) |
on Feb 09, 2001 at 21:17 UTC ( [id://57415]=note: print w/replies, xml ) | Need Help?? |
I think that what batmonk is asking for may be possible. (Note that batmonk never asked about resuming file uploads over HTTP; merely about an upload progress report.)
With a non-parsed-header (nph) CGI script, one can send output directly to the client while the script is still running. (As opposed to a normal CGI script, where the server waits until the script closes its STDOUT before sending the output to the client). Thus, a file upload script with a simple progress report could be implemented by alternately reading a chunk of the uploaded file and printing out a status message. The browser would display all the messages that had been sent. This assumes, however, that the server doesn't read in the whole request itself and then buffer it for the script. That's the part I'm not sure about.
In Section
Seekers of Perl Wisdom
|
|