[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] $CGI::POST_MAX


I apologize in advance for asking this because I suspect it's pretty basic for most of you, but I can't seem to get it right.

On my old script I used this;

$CGI::DISABLE_UPLOADS = 1;

and/or this;

$CGI::POST_MAX=1024 * 100;  # max 100K posts

at the top of my scripts to help prevent DOS attacks and valid users from uploading really large files.

When I allow users to upload a file I use the "$CGI::POST_MAX", then I do this;

if ($Q->cgi_error()) {
	$message = $Q->cgi_error()."<p>CGI Error";
	&error_trap($message);
   }

Could someone please tell me how to implement this when using CA?

Thank you,

--
Bill Stephenson


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.