in reply to Re: file upload, max_post, and cgi-error
in thread file upload, max_post, and cgi-error

I've been able to do that OK. But the problem is CGI must download to a temp file on your server before passing control to your script, exposing you to denial of service attacks. If I can't trap it via cgi_error my server is at risk. The interesting thing about this is that I can still execute code to send myself an email after trying to put out the html msg to the user. It looks like CGI is somehow disconnecting from the process. I've tried reinstantiating CGI after getting the error but still no luck.
  • Comment on Re^2: file upload, max_post, and cgi-error

Replies are listed 'Best First'.
Re^3: file upload, max_post, and cgi-error
by Your Mother (Archbishop) on Oct 06, 2004 at 03:25 UTC

    Uh, okay, errr... maybe try...?

    #!...perl -T use strict; eval { # entire script as before but try 'require CGI' instead of 'use' }; deal_with_problem($@) if $@; sub deal_with_problem { # mail, print feedback page, etc }