J
Joe Smith
Asterbing said:Thus, for example, I would like that John submit a 101MB file and be
warn some minutes later, after unuseful 100MB uploading.
Is there a way to solve this case using the builtin functions available
in Perl ?
No.
Perl scripts running on you server can present output to the client;
they do _not_ run on the client.
When the browser (http client) sends a request, your Perl CGI script
is *NOT* running. Yet. The only thing that is running is inside
the browser. If you include JavaScript in your HTML form, then
the JavaScript inside MSIE/Netscape/Firefox/Safari/etc may be able
to do some things, but probably not that.
The builtin functions only apply on the system where Perl is running,
and it is not running on the client.
Let me reiterate: Under your control is the HTML that you send
to provide a FORM to the client. You have control of what gets
executed after the POST request reaches your server. You do not
have control of what happens in between. The behavior of code
running on the client depends on the software that is installed
on the client, and you do not have control over that.
What you are asking for cannot be solved by Perl, COBOL, FORTRAN,
or anything else _running on the server_.
-Joe