[ https://issues.apache.org/jira/browse/FILEUPLOAD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jochen Wiedmann resolved FILEUPLOAD-141. ---------------------------------------- Resolution: Won't Fix You are free to overwrite the FileItemFactory to return an instance of DiskFileItem, which overrides the method getTempFile() in that sense. Apart from that, changing the current code in your sense would most possibly be the cause of a lot of compatibility problems without gaining too much. I am unaware of any actual FileUpload installation that considers hanging files a real issue. This might be the case in your particular application, but then I believe it's fine that you tune the code to meet your special requirements. > Remove FileItems if FileUploadBase.parseRequest() fails > ------------------------------------------------------- > > Key: FILEUPLOAD-141 > URL: https://issues.apache.org/jira/browse/FILEUPLOAD-141 > Project: Commons FileUpload > Issue Type: Improvement > Affects Versions: 1.2 > Environment: commons-fileupload is used for parsing > multipart/form-data POST requests in servlets. > OS: Linux > Reporter: Marcus Klein > > If the method FileUploadBase.parseRequest() throws a FileUploadException, the > already parsed FileItem objects are not accessible and removed by the garbage > collector. Now expect a fileupload that fills the servers hard disc with > FileItems until no space is left on the device. The method parseRequest() > throws a FileUploadException and there are several FileItem objects that > still exist in the device because the garbage collector does not run and > removes them. This causes failing fileuploads until the garbage collector > runs and removes the lost FileItem objects. I suggest calling > FileItem.delete() on all FileItem objects created in the method > FileUploadBase.parseRequest() if the method is left with a > FileUploadException. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]