This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This seems to do just what was intended (triggering the click event for all links) and thereby starting the downloads. However, for every download initiated, it would open a 'Save as...' download box where I need to specify a location for this download.
Now, for a large number of files, this becomes a problem. Wondering if it would be possible to just ask for the download location for the first file and rest of the files in that batch get saved to the same location? (I understand this would be a security concern and most likely would not be possible).
Tweaking the browser settings would achieve something similar but it would not ask for the download location in the first place and would save in the default location specified.
Here's a summary of what is required:
1) User clicks on a link to download a batch of files.
2) The first download is initiated asking for a location to save the file.
3) All subsequent files are saved to the same location.
Any pointers in the right direction would be very helpful. I'll then try to take it forward from there.
Appreciate your time and inputs.
--<br />SCJP 5.0
Joined: Jun 24, 2008
Could not find how to edit my OP.
Just a couple of pointers:
1) I'm using Spring framework 3.0.5.
2) Bundling the individual files into a zip archive is not an option.
I don't know if this is related, but I think this behavior could also be tied dow to your browser preferences.
I use chrome and have configured it to use the Downloads folder. I never get asked where to download. However, for multiple downloads, I do get a confirmation dialog which says something like "This site is attempting to download multiple files".
Thanks Maneesh and Bear.
Maneesh, yes, this is something that is primarily determined by browser preferences. I was probably looking for a way to somehow override this behavior so that it is consistent across all browsers.