commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tam, Michael" <m...@pfc.cfs.nrcan.gc.ca>
Subject RE: [File Upload] Unable to delete tmp file
Date Fri, 20 Aug 2004 18:51:41 GMT
Hi Brad,

The temp file which will be written to the specified repository (file
system) when the upload item size is greater then the max memory size.  

Yes indeed.  Correct me if I am wrong, when you init the DefaultFileUpload
you will provide the repository location which is where the temp file will
be written to.  I think if you don't set it, it will write it to where the
default temp folder being set in the environment (i.e. tomcat).

Michael

-----Original Message-----
From: Lane, Brad [mailto:Brad.Lane@pearson.com]
Sent: August 20, 2004 7:28 AM
To: Jakarta Commons Users List
Subject: RE: [File Upload] Unable to delete tmp file


What temp files are we talking about? Does File Upload write the file
somewhere other than what I specify with item.write()?

-----Original Message-----
From: Martin Cooper [mailto:mfncooper@gmail.com] 
Sent: Friday, August 20, 2004 12:01 AM
To: Jakarta Commons Users List
Subject: Re: [File Upload] Unable to delete tmp file

There is a known problem related to files not being cleaned up until
the container (really, the JVM) shuts down. There is also a known fix
for this, which will show up in the nightly builds when I find the
time to get it in.

However, I'm not aware of a bug that would cause the files to not be
removed when you explicitly call the delete() method. The most obvious
scenario in which this would happen would be if you were somehow
keeping the file open elsewhere, so that's worth checking.

If you can provide a test case, or a reproducible example, that would
help greatly.

--
Martin Cooper


On Wed, 11 Aug 2004 17:15:11 -0400, Tam, Michael
<mtam@pfc.cfs.nrcan.gc.ca> wrote:
> Hi all,
> 
> I am running FILE UPLOAD 1.0 with TOMCAT 4.1.29.  I can upload files
through
> a JSP; however, the associated tmp files cannot be removed until TOMCAT
> shutdowns/restarts even though I explicitly call
> the file item delete function at the end of the upload.
> 
> Any help on addressing this issue is appreciated.  Thank you.
> 
> Michael
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.736 / Virus Database: 490 - Release Date: 09/08/2004
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

****************************************************************************

This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message