This content has been marked as final.
Show 4 replies
-
1. Re: RF 4.3.4 Final : File Upload Temporary File Not Getting Deleted
bleathem Dec 3, 2013 6:38 PM (in response to ripper9100)Is there an exception thrown/logged in your server log you can listen for?
-
2. Re: Re: RF 4.3.4 Final : File Upload Temporary File Not Getting Deleted
ripper9100 Dec 7, 2013 4:27 AM (in response to bleathem)Yes, I have a class which extends ExceptionHandlerWrapper where I am logging the exception when the file upload is interrupted. I thought about putting some logic in this class which would delete the file when that specific Exception is thrown but I'm not sure how to get the temporary file name from within this class in order to delete the file.
@Override public void handle() throws FacesException { final FacesContext facesContext = FacesContext.getCurrentInstance(); final ExternalContext externalContext = facesContext.getExternalContext(); Iterator iter = getUnhandledExceptionQueuedEvents().iterator(); ... }
-
3. Re: RF 4.3.4 Final : File Upload Temporary File Not Getting Deleted
bleathem Dec 12, 2013 3:43 PM (in response to ripper9100)1 of 1 people found this helpfulHave a look at how the FileUpload Renderer gets the file names, and see if you can adapt that to your Exception handler:
-
4. Re: RF 4.3.4 Final : File Upload Temporary File Not Getting Deleted
ripper9100 Dec 18, 2013 11:36 PM (in response to bleathem)Thanks for the help. That link helped me solve the issue.