How do I access the file size without making filesize a parameter
input by the user?
>Teresa Raymond wrote:
>: This does not work, there is no error msg, it just doesn't get paid
>: attention to.
>:
>: if ($cgi->param('$filesize')>=$CGI::POST_MAX)
>: { print "Your file is too large to send";
>: }
>
>Get rid of the $ in front of filesize. Should just be
>
>if ( $cgi->param('filesize')>=$CGI::POST_MAX)
>
>Also, to be safe, you might want to check that $CGI::POST_MAX is
>non-negative before doing this test. (A negative $CGI::POST_MAX means
>there is no limit to the size of an uploaded file.)
>
>-- tdk
*** Teresa Raymond
*** http://www.mariposanet.com
*** [EMAIL PROTECTED]