Re: Unaltered cgi upload

2007-02-09 Thread Stephan Jennewein
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()

Re: Unaltered cgi upload

2007-02-07 Thread Perrin Harkins
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

Re: Unaltered cgi upload

2007-02-07 Thread Dondi M. Stroma
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

Unaltered cgi upload

2007-02-07 Thread Stephan Jennewein
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