The problem is when 2 or more files are bieng uploaded.
How can i know the size of each file?
I use CGI->new(\&hook) method to catch file uploading process.
How does it work? Does it use a separate frame for the monitoring?
> While uploading i must to know total size of the file that is being
> uploaded.
> It is not problem becouse there is global variable
> $ENV{CONTENT_LENGTH} that contains the lenght of the attachment.
>
> The problem is when 2 or more files are bieng uploaded.
>
> How can i know the size of each file?
Strictly on the server, you can't. At least not until each file is done
being sucked down by the server and the next "multipart/form-data" starts
arriving.
You might be able to craft some javascript running on the client side that
will check on the local file size and encoded it into the form submission.
But I don't see the point. As a user, I'd want to know when the upload is
likely to be done. What do I gain by knowing what each individual
component is doing?
> I use CGI->new(\&hook) method to catch file uploading process.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
<body>
<noscript>
<div style="border: 2px solid red">You have not javascript enabled, please
enable it.</div>
</noscript>
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail.
Send me your mail from another non-spammer site please.)
Please reply to <petr AT practisoft DOT cz>
-- Posted on news://freenews.netfront.net - Complaints to ne...@netfront.net --
The magic words for Google are "get file size javascript" :-)
Maybe some of that can help you.