Do you know where your variables are? | |
PerlMonks |
CGI - How to determine content length for multiple files ?by roadrunner (Acolyte) |
on Feb 06, 2006 at 11:05 UTC ( [id://528191]=perlquestion: print w/replies, xml ) | Need Help?? |
roadrunner has asked for the wisdom of the Perl Monks concerning the following question: Hi, I'm using the CGI::upload_hook functionality to process multiple file uploads from a webpage and would like to provide users with status on the progress of the upload of each file - ideally a percentage figure of how much of the file content has been uploaded. To do this, I need to know the size of each file before processing it in the hook. However, I notice that the only globally available indicator of the size of uploaded content seems to be: $ENV{CONTENT_LENGTH}; ...which gives the size for *all* uploaded files. Does anyone know a way I can determine the size of each *individual* file ? Thanks,
Back to
Seekers of Perl Wisdom
|
|