469,950 Members | 1,598 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Solution to a simple requirement: How to allow user to browse/providelocal folder location/path for download

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
1 1732
Radhey Krishna said the following on 1/26/2008 9:06 PM:
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).
You can't. Not with JS or any other language on the web. It is a
security issue whereby browser manufacturers agree that my personal PC
settings are off-limits.

Download a file, save it where you want.
Repeat until finished.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jim | last post: by
3 posts views Thread by Matthias HALDIMANN | last post: by
3 posts views Thread by Sorin Dolha | last post: by
2 posts views Thread by D. Shane Fowlkes | last post: by
10 posts views Thread by serge calderara | last post: by
6 posts views Thread by Jim M | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.