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

File Download - any way to prevent "Open from current location"

 
Monty Guppy
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a servlet that works fine for downloading excel files. However, while download, I get the usual DialogBox which asks me to choose between "Save to Disk" or "Open from current location". Is there a way by which I can force my user to only be able to "Save to Disk" and not able to open from current location.
Further - is there a way by which I can setup a default location for the downloaded file to reside at? If so, what happens if the user doesn't have the folder structure on his machine? Does it create that folder structure?
Thanks
 
Ken Shamrock
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also have a question on it, when the user click on the files, how can it be automatically saved to the HD instead of popping up the "Save it or open it" window? I think the only way is to use Applet?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic