Temporary file soon got deleted before I can reference
------------------------------------------------------

                 Key: FILEUPLOAD-163
                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-163
             Project: Commons FileUpload
          Issue Type: Bug
         Environment: Windows Vista Home, Apache Tomcat 6.0
            Reporter: Kevin Tian


Here is the partial of codes I apply for Apache File upload

diskFileItemFactory = new DiskFileItemFactory();
diskFileItemFactory.setRepository(new File(tmpDirectory));
diskFileItemFactory.setFileCleaningTracker(null);
fileUpload = new ServletFileUpload(diskFileItemFactory);  
items = fileUpload.parseRequest(httpServletRequest);

This problem happens often but not always, sometimes it can be successfully run.

The problem is when I attempt to reference the file object, the real data file 
stored in my temporary directory soon got deleted before I can reference. After 
some research on my own, I discovered that there could be a file cleaning 
tracker there to clean up the temporary file, but after disabling it it still 
didn't solve the bug.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to