Re: How to find uploaded data size from content-length



xhoster@xxxxxxxxx wrote:

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.

You mean it reads until it detects that the max size has been reached?
Yes, that's what I expect, since one can keep streaming bytes, and only
when the max has been reached the script knows it was too much.

The second part: if the documentation is wrong, it must be fixed. Did you
submit this?

--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
.



Relevant Pages

  • Re: How to find uploaded data size from content-length
    ... so your question actually is: how do I avoid the uploading of big ... If set to a non-negative integer, this variable puts a ceiling on the ... it will immediately exit with an error message. ...
    (comp.lang.perl.misc)
  • Re: How to find uploaded data size from content-length
    ... so your question actually is: how do I avoid the uploading of big ... it will immediately exit with an error message. ... and I'm not sure how to clarify here ...
    (comp.lang.perl.misc)
  • Re: How to find uploaded data size from content-length
    ... so your question actually is: how do I avoid the uploading of big ... it will immediately exit with an error message. ...
    (comp.lang.perl.misc)
  • Re: using a trigger to enforce referential integrity
    ... The first thing to do is COMPLETELY and EXACTLY specify the error message ... Lets avoid "something like..." ... you can then move on to rewriting your trigger to ... FROM tblItemRelationship AS IR ...
    (microsoft.public.sqlserver.programming)
  • Re: Domain issue
    ... Do you have the Registry Filter component in the image? ... After thirty days,It just display the following error message ... " The system cannot log on now because the domain MYDOMAIN is not ... I want to avoid this type of domain entry ...
    (microsoft.public.windowsxp.embedded)