• Post Reply Bookmark Topic Watch Topic
  • New Topic

Download file issue  RSS feed

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem during downloading a file from database.
I first upload file under file name and using uploadinterceptor.
Now when I downloading, I create a .jsp page which list files in database, providing link to each of them to download.
When user choose file, request goes to action (let say action with name -Download)
that action further process to servlet, which read from database file and output it:



The problem is that, file offered to download has name - Download.action - ! Not the real name what it was uploaded under , just name of action followed .action suffix.
What goes wrong, and how can I improve this code?!
Thanks in advance
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found solution. Thanks anyway...
 
Villains always have antidotes. They're funny that way. Here's an antidote disquised as a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!