in reply to Setting CGI::POST_MAX with CGI::Application
#!/usr/bin/perl -T use strict; use warnings; use lib '/home/lib'; use Current::My_App; use CGI; $CGI::POST_MAX=102400; # Limit post to 100kB $CGI::DISABLE_UPLOADS=0; # Allow file uploads my $q=CGI->new; # Create query object if ($q->cgi_error()) { print $q->header(-status=>$q->cgi_error()); exit 0; } my $app=Current::My_App->new(query=>$q); $My_App->run();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Setting CGI::POST_MAX with CGI::Application
by derby (Abbot) on Nov 09, 2005 at 13:08 UTC |