-
Using Struts 2: when will the .tmp file – that gets created after uploading a file – be deleted?
-
How can you customize when the .tmp file should be deleted? Do you have to create a copy of it?
Please don’t be shy to give some code 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. This depends on which version of S2 you’re talking about.
2. Assuming you’re using a recent version, it might be possible to inject a tweaked
Dispatcher, although it’s not immediately obvious how–if it is, that’s the easiest change at the core level.The easiest approach from a practical standpoint is to copy files in the action, which is also pretty fast on any reasonable file system.