Re: How to find uploaded data size from content-length
- From: Asterbing <no@xxxxxxxxxx>
- Date: Wed, 19 Apr 2006 21:24:09 +0200
In article <20060419143435.067$oG@xxxxxxxxxxxxxx>, xhoster@xxxxxxxxx
says...
John Bokma <john@xxxxxxxxxxxxxxx> wrote:
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.
That should probaby be changed. It does not immediately exit with
an error message. It first reads (and discards) the entire contents
of the POST, which apparently the OP doesn't want to happen althought it
is kind of hard to figure out exactly what he wants. Also, it doesn't
exit at all. It causes param to return an empty param list, and it causes
cgi_error to return an error message--no exiting involved.
Xho
OK, so it doesn't specifically limit the size of uploadable file (but
size of entire POST) and it doesn't avoid sending of entire POST data
from web browser to server's STDIN ?
.
- 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
- Re: How to find uploaded data size from content-length
- From: xhoster
- 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: 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
|