Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
Curtis Poe wrote: : That will only give the approximate filesize. $ENV{CONTENT_LENGTH} is the total :size of the : entity body. With 'multipart/form-data' (the enctype used with file uploading), the :entity bodies : size is even larger than normal. The more data sent (besides the file), the

Re: testing for max size of file

2001-06-18 Thread Curtis Poe
--- Timothy Kimball <[EMAIL PROTECTED]> wrote: > > Teresa Raymond wrote: > : How do I access the file size without making filesize a parameter > : input by the user? > > This should be in the $ENV{CONTENT_LENGTH} variable. > > -- tdk That will only give the approximate filesize. $ENV{CONTENT

Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
Teresa Raymond wrote: : How do I access the file size without making filesize a parameter : input by the user? This should be in the $ENV{CONTENT_LENGTH} variable. -- tdk

Re: testing for max size of file

2001-06-18 Thread Teresa Raymond
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"; >

Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
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')>=$

testing for max size of file

2001-06-18 Thread Teresa Raymond
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"; } *** Teresa Raymond *** http://www.mariposanet.com *** [EMAIL PROTECTED]