This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!