I am using MultipartFormDataRequest to upload files to my server. My problem is one day it works and another day it doesnt. Despite the code being same, MultipartFormDataRequest works inconsistently. There are no script or jsp errors. Can anyone help me?? I have pasted the code below. Please help its urgent . Thanks. Both the code snippets are from the same jsp file
Here the multipart code snippet
David Newton wrote:I can't make heads or tails of that. Is there anything in the logs?
Why do you sleep for two seconds for no apparent reason in the middle?
Why are not you try to make unique directory for every file name ? Will help in removing confusion as well. Please code as much in servlet as compared to jsp. What exactly happens when you submit the page?