Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ajax servlet stoping running file upload

843842Oct 8 2009 — edited Oct 8 2009
hi all, I need some help if someone know how to do it.
I am making a jsp servlet mysql application and problem is canceling running upload.
I am using ajax get request to start file upload to servlet and it works fine. I am monitoring
upload progress in a msgbox.
But if client wants to stop(cancel) running upload, he push the close button, and msgbox is closing but
upload continues at servlet. How can tell servlet to cancel this upload?
If i dont do that. Servlet keep file name info, and when client starts another upload, this time servlet uses previous uploaded(canceled) file name info for new uploaded file.
How can say servlet to stop uploading and set all values to null?
Thanks all.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2009
Added on Oct 8 2009
5 comments
385 views