Re: How to find uploaded data size from content-length
- From: Asterbing <no@xxxxxxxxxx>
- Date: Wed, 19 Apr 2006 21:20:59 +0200
In article <Xns97AA8023D74CDcastleamber@xxxxxxxxxxx>,
john@xxxxxxxxxxxxxxx says...
$CGI::POST_MAX
If set to a non-negative integer, this variable puts a ceiling on the
size of POSTings, in bytes. If CGI.pm detects a POST that is greater than
the ceiling, it will immediately exit with an error message. This value
will affect both ordinary POSTs and multipart POSTs, meaning that it
limits the maximum size of file uploads as well. You should set this to a
reasonably high value, such as 1 megabyte.
Without CGI.pm !
However, reading what you posted from CGI.pm help, it seems that CGI.pm
doesn't really limit the file size precisely but rather the entire
POSTed data. So, how if I want to be free to choose the file limit not
as 1MB but as 5KB ?
.
- Follow-Ups:
- Re: How to find uploaded data size from content-length
- From: xhoster
- Re: How to find uploaded data size from content-length
- From: John Bokma
- Re: How to find uploaded data size from content-length
- References:
- How to find uploaded data size from content-length
- From: Asterbing
- Re: How to find uploaded data size from content-length
- From: John Bokma
- Re: How to find uploaded data size from content-length
- From: Asterbing
- Re: How to find uploaded data size from content-length
- From: John Bokma
- How to find uploaded data size from content-length
- Prev by Date: Re: How to find uploaded data size from content-length
- Next by Date: Re: How to find uploaded data size from content-length
- Previous by thread: [OT] (was: Re: How to find uploaded data size from content-length)
- Next by thread: Re: How to find uploaded data size from content-length
- Index(es):
Relevant Pages
|