I changed the cleanup stuff to a perlcleanup handler, but I want to
check if the temp directory, where the upload should store stuff, does
already exist. and if it's exist quit immediately but since I switched
to modperl it waits until the whole upload has finished before it quit.
Changeing exit()
On 2/7/07, Stephan Jennewein <[EMAIL PROTECTED]> wrote:
local $SIG{__DIE__} = \&cleanup;
Make that a PerlCleanupHandler.
And if something goes wrong with the upload a $cgi->redirect should send
the user to another page can I use this with mod_perl and the exit()
after the redirect doesn't wor
Hi,
I don't think you have to worry about using die or exit it all. The CGI.pm
documentation says the following:
"There are occasionally problems involving parsing the uploaded file. This
usually happens when the user presses "Stop" before the upload is finished.
In this case, CGI.pm will re
Hi,
I want to change a cgi script to run with mod_perl, but I have a problem
with the DIE signal I used in an earlier version to clean the directory
if the user presses the stop button during the upload.
local $SIG{__DIE__} = \&cleanup;
But this doesn't work with mod_perl2 and apache2. How can I