in reply to file upload, max_post, and cgi-error
So I just resort to using the CONTENT_LENGTH
my $maxsize = 1024 * 100; #max 100K my $upload_dir='uploads'; my $q = new CGI; print $q->header(); if($ENV{CONTENT_LENGTH} > $maxsize){ print "file too large - must be less than $maxsize bytes"; exit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: file upload, max_post, and cgi-error
by nponte (Initiate) on Oct 05, 2004 at 17:19 UTC | |
by Your Mother (Archbishop) on Oct 06, 2004 at 03:25 UTC |