Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

File Upload  RSS feed

 
Arulanand Dayalan
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Iam using struts. I have Jsp in which i have to attach file and fill in some details and submit and the details would be updated in db. Problem here is i can attach any number of files, on attaching a file the file should be displayed as link with filename and when user clicks the file must be opened.I cant move the file to db untill its submitted, so where i would be storing the file.Can anyone suggest a way to handle this situation.

Regards,
Arul.
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could either store the file in a temporary area on the database or in a temporary directory in the app server.

If the entire upload is complete, you can move the files to permanent storage.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!