> -----Original Message----- > From: Babale Fongo [mailto:[EMAIL PROTECTED] > Sent: Friday, May 14, 2004 10:08 PM > To: [EMAIL PROTECTED] > Subject: CGI.pm / Upload File / delete temporary file (CGITemp****) > > > > > > You don't have to bother about deleting it. GCI.pm takes care of that. >
I thought it would but it doesn't. Not on Win32 anyway. Is there some destructor that's supposed to be called? Maybe a $cgi->close or similar? BTW. I find it annoying that the CGI.pm documentation does not contain a simple list of properties and methods ... at least i can't find them ;) I did discover a setTempFile method which i believe will allow me to name the temp file thus allowing easy deletion. Toby > > || > ||Hi All, > || > ||Been ages since I last posted to this list... > || > ||Anyhoo, I have a script which handles the uploading of a file. > || > ||It uses the CGI module to get the form params etc and > open/read/close > ||statements to receive the file. This is fine and all works > well. The > ||problem is a temporary file (of the same size as the > uploaded file) is > ||created in the TEMP directory. It has a name along the lines of > ||'CGITemp****' where the asterisks represent a sequence number. > || > ||Is there any switch/arg to prevent this or at least delete this file > when > ||the upload is completed? I have googled to no avail. > || > ||I suppose I could just delete it myself but I don't know the CGITemp > ||sequence number. > || > ||If no one knows I guess i'll have to have a look at the code for > CGI.pm :( > || > ||I'm on Win32, perl v5.6.1, CGI v2.752 > || > ||Thanks > || > ||Toby > || > ||-- > ||To unsubscribe, e-mail: [EMAIL PROTECTED] > ||For additional commands, e-mail: [EMAIL PROTECTED] > ||<http://learn.perl.org/> <http://learn.perl.org/first-response> > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>