Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with file uploading

 
sureshjava
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have one problem in file uploading,

my problem is while uploading the file if the user clicks on cancel button ,the uploading process should be terminated, plz help me

Regards,
suri
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javasureshpmca ponnekanti,
Welcome to JavaRanch!

We're pleased to have you here with us in the servlets forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here

Thank you.
 
Abhinit Saxena
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi suresh,
Your question is no very much clear to me. What method you are using for file upload... Is it a web based fileupload or you are using swing based socket connection.. If you are using request.getStream() to get the file stream (in servlet) then you have to create a controller servlet which is listing to user and side by side do file uploading process (using thread) and if servlet got cancel event then it should stop the uploading thread.

Same method you can apply in socket based file uploading
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic