in reply to Re: Re: Re: Re: Yet another CGI Upload problem - not like the others!
in thread Yet another CGI Upload problem - not like the others!
The limit is not working because (just like with CGI.pm) you have to set the upload size and disable upload stuff before you get to the use. This is becasue when you call use these modules do the actual parsing of the data stream. The correct order (CGI.pm or CGI::Simple.pm) is:
#!/usr/bin/perl use warnings; use strict; # set the stuff $CGI::Simple::POST_MAX = 1024; # max upload via post default 100 +kB $CGI::Simple::DISABLE_UPLOADS = 0; # now when we can load the module and parse the data # it will notice the stuff we set above use CGI::Simple; # if we set POST_MAX or DISABLE_UPLOADS here it is too late....
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Yet another CGI Upload problem - not like the others!
by fireartist (Chaplain) on Sep 24, 2004 at 23:17 UTC | |
by tachyon (Chancellor) on Sep 25, 2004 at 01:17 UTC |