in reply to Re: CGI.pm uploads under mod_Perl on WinNT
in thread CGI.pm uploads under mod_Perl on WinNT
I added some debugging code to the TempFile DESTROY routine, and after remembering to cycle Apache so that the change got noticed, I discovered that there was an "Permission denied" problem.
Having previously had problems with File::Cache under NT before, I went back into my code and made sure that there was an explicit close to the uploaded file after I copied it from temp. Letting the handle go out of scope, appears to trigger CGI's DESTROY (it works find under CGI-BIN), but not under mod_Perl PerlRun. I added a close $handle at the end of the block just before it went out of scope, and now it works fine.
Lessons learnt:
Many thanks in arrears.
|
|---|