in reply to Upload Progress

I don't know if CGI::Simple offers it, but CGI has a method called upload_hook, which can be used for that purpose:
$q = CGI->new(); $q->upload_hook(\&hook,$data); sub hook { my ($filename, $buffer, $bytes_read, $data) = @_; print "Read $bytes_read bytes of $filename\n"; }
The size of the uploaded file may (or may not) be passed in the headers - call uploadInfo() to find out.

Replies are listed 'Best First'.
Re: Re: Upload Progress
by valdez (Monsignor) on Apr 27, 2004 at 00:07 UTC
      But this can't be used to build a progress bar...

      Not within the same request, as was mentioned in the thread you linked to, but you can use it to build a pop-up based progress bar. See Apache::UploadMeter for a mod_perl implementation of a progress bar (it uses the upload hook in Apache::Request to do it).

      - Cees