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



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 ?
.



Relevant Pages

  • Re: How to find uploaded data size from content-length
    ... If set to a non-negative integer, this variable puts a ceiling on ... size of POSTings, in bytes. ... This value will affect both ordinary POSTs and multipart POSTs, ...
    (comp.lang.perl.misc)
  • Re: How to find uploaded data size from content-length
    ... If set to a non-negative integer, this variable puts a ceiling on ... size of POSTings, in bytes. ... This value will affect both ordinary POSTs and multipart POSTs, ...
    (comp.lang.perl.misc)
  • AFM Alien splatters on my gameroom walls :)
    ... So after seeing some posts of people painting their gameroom, ... decided to do the same instead of the drop ceiling and sheet rock like ... Painting the ceiling a high gloss Ultra White ...
    (rec.games.pinball)