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
- testing for max size of file Teresa Raymond
- Re: testing for max size of file Timothy Kimball
- Re: testing for max size of file Teresa Raymond
- Re: testing for max size of file Timothy Kimball
- Re: testing for max size of file Curtis Poe
- Re: testing for max size of file Timothy Kimball
