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,
roadrunner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI - How to determine content length for multiple files ?
by santonegro (Scribe) on Feb 06, 2006 at 16:27 UTC | |
|
Re: CGI - How to determine content length for multiple files ?
by Adrade (Pilgrim) on Feb 06, 2006 at 12:53 UTC | |
|
Re: CGI - How to determine content length for multiple files ?
by cees (Curate) on Feb 06, 2006 at 15:17 UTC | |
by pcouderc (Monk) on Mar 10, 2006 at 18:09 UTC | |
|
Re: CGI - How to determine content length for multiple files ?
by glasswalk3r (Friar) on Feb 06, 2006 at 15:20 UTC |