This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes File Download - any way to prevent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "File Download - any way to prevent "Open from current location"" Watch "File Download - any way to prevent "Open from current location"" New topic
Author

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

Monty Guppy
Ranch Hand

Joined: Sep 15, 2001
Posts: 49
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

Joined: Jan 23, 2002
Posts: 139
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?


Thanks everyone who helped me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Download - any way to prevent "Open from current location"
 
Similar Threads
Open shared location while uploading/downloading a file
Excel Download Directory location
Setting up a file Download from my site
Need Help for implementing save as dialog box for downloading a folder not a file
repost with more detail on problem of download servlet in Internet Explore