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
--- 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
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
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";
>
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')>=$
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]