By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,099 Members | 2,156 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,099 IT Pros & Developers. It's quick & easy.

How to allow user to browse/provide local folder location/path for download

P: 25
A very interesting problem for a simple requirement and not easily available solution:

How would I create a button which will allow the user to specify where the file to be downloaded will be saved to??

The actual problem is that I have multiple drop down buttons (for multiple files) with each of the drop down button containing an option to save to a local folder. Once the user specifies the local path for each of these files and clicks the submit button. All of the files will be saved automatically to these locations.

I thought that this is a simple and decent requirement by the client but I have found no solutions on the web. So JavaScript developers, please provide some suggestions on how to access the directory path string (which will be used to download the file).

Thanks and Regards
RadKri
Jan 27 '08 #1
Share this Question
Share on Google+
4 Replies


gits
Expert Mod 5K+
P: 5,332
hi ...

javascript cannot provide this ... its up to the user where he wants to store the files ... and he sets this with his browsers properties ...

kind regards
Jan 27 '08 #2

P: 25
hi ...

javascript cannot provide this ... its up to the user where he wants to store the files ... and he sets this with his browsers properties ...

kind regards

Unfortunatley, I have many files that will be downloaded in a single click. So is the unsolved problem.

Any other technology I can use quickly, like a script I can borrow copy paste and starting using?
Jan 28 '08 #3

gits
Expert Mod 5K+
P: 5,332
hi ...

it is, and it should, be the users decision where he wants to download the files to. imagine a webpage that don't respect your settings and that stores a file where it wants and may be is not informing you about it ... simple security reasons ... so a webpage shouldn't have access to the users filesystem except when he allows it explicitly ... with such an agreement you may let the browser ask for low security privileges for an ActiveX-Component (IE only) or Mozilla's privileges ... but as you can see this is browser-specific and you would have find a solution for every browser out there that you want to be supported ...

why not bundle the files in a zip or whatever and let the user decide what to do with it after downloading?

kind regards
Jan 28 '08 #4

P: 25
Thanks for the replies, I ended up with two solutions for the problem:

1) multiple button boxes which kind of pop up a file for download for each and the user saves it wherever he wants to.

2) links for download, the user clicks each link and a file pops up for him to download.

Thanks for your replies
Feb 19 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.