Re: How to find uploaded data size from content-length
- From: John Bokma <john@xxxxxxxxxxxxxxx>
- Date: 19 Apr 2006 17:35:53 GMT
Asterbing <no@xxxxxxxxxx> wrote:
In article <Xns97AA6D15AEC7Fcastleamber@xxxxxxxxxxx>,
john@xxxxxxxxxxxxxxx says...
Why not -s filename assuming you store it in a file system?
Because I would like to avoid too big files
Ok, so your question actually is: how do I avoid the uploading of big
files:
$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.
(documentation of CGI.pm, Avoiding Denial of Service Attacks)
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
.
- Follow-Ups:
- Re: How to find uploaded data size from content-length
- From: Asterbing
- Re: How to find uploaded data size from content-length
- From: xhoster
- 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
- How to find uploaded data size from content-length
- Prev by Date: Re: Creating 1 file w/ the contents of 7 other files mixed randomly.
- Next by Date: Re: autoincrement hex numbers
- Previous by thread: 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
|