On Oct 18, 2005, at 5:13 PM, B10m wrote:

* B10m <[EMAIL PROTECTED]> [2005-10-18 23:48:11+0200]
[file uploads: $CGI::POST_MAX trapping not working with CAP - CGI.pm]

Mmm, I was messing with it and posted my previous message too fast, I
suppose, 'cause I have found a workaround now. Instead of using
CGI.pm (which doesn't provided needed results), use CGI::Simple.

I played with trapping the error in my instance script right before the run mode. This worked, but I found that the script still did not interrupt the entire file from being uploaded, it only output the error page after the file had finished being POSTed. I dug into CGI.pm a bit to see what was going on after asking a question on the "beginners-cgi" list. As I understand it, the server will process the POST completely before handing the data to the CGI script.

Still, this is an error that needs to be trapped, if for no other reason, than to tell the user they can't post too much data.

Kindest Regards,

--
Bill Stephenson


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

Reply via email to