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



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



Relevant Pages

  • Re: Wow...somthing OT (Iraq) to consider
    ... >> Again, ignore, obfuscate, avoid. ... >>> I write plenty of constructive posts, ... Yeah, this all started because...I was ignoring you. ...
    (rec.music.beatles)
  • Re: North Koreas Air Force and The Bomb
    ... I do, however, find his posts to be boring. ... I therefore avoid them -- ... With regards to North Korea, I haven't advocated doing anything -- I've ...
    (rec.aviation.piloting)
  • Re: Wow...somthing OT (Iraq) to consider
    ... >> Again, ignore, obfuscate, avoid. ... > Oh come on, Charlie. ... > I pointed out that I do write some constructive posts. ...
    (rec.music.beatles)
  • Re: If RSFCs resident political wankers would just...
    ... we could avoid having to watch out for puddles. ... days and then you come back with a flurry of OT posts that have ... defend someone against an unfair attack, rather than to launch an unfair ... That's why I've added so many new subject filters lately. ...
    (rec.sport.football.college)
  • Re: If RSFCs resident political wankers would just...
    ... we could avoid having to watch out for puddles. ... days and then you come back with a flurry of OT posts that have ... defend someone against an unfair attack, rather than to launch an unfair ... That's why I've added so many new subject filters lately. ...
    (rec.sport.football.college)