473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to allow user to browse/provide local 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
4 2767
gits
5,390 Expert Mod 4TB
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
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
5,390 Expert Mod 4TB
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
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

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

Similar topics

2
by: James | last post by:
how can i allow access to a shared network folder? i am trying to give access to my as pages only. i don't want just anyone to type in the path of my files. i can't seem to do this with a shared...
0
by: Grant_S | last post by:
I need to identify the path to a users "My Document" folder where the user has a roaming profile and their "My Documents" folder is mapped to a network share as the H drive (specifically H:\\ -...
8
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As...
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
8
by: DEWright_CA | last post by:
Why does WebClient.DownloadFile loose my completed path? Ok, I have a function in my app then when my button is clicked it checks to see if the files come from a local drive or a http address....
3
by: SDRoy | last post by:
Hi Can someone please tell me how I can browse a FTP directory location in C# and then download. I am using something like: DirectoryInfo DirInfo = new...
4
prabunewindia
by: prabunewindia | last post by:
Hello everybody, here i am going to explain, how to get mails from Outlook express database and store in our own database(local) Initially you have to add the refference Outlook library10.0 or...
31
by: zdenko | last post by:
I have a multi user database and users were created by user level security wizzard - as I mentioned in message before. Everything works fine for those users, but now I have another problem. I have...
1
by: Radhey Krishna | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.