Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify default download folder - possibly with JavaScript?

We're currently in the process of developing a web-based application which will require the downloading of files through the browser. It would be ideal to have these files end up in a specific location on the file system.

Is there a way to make the file save and file open dialog default to a specific folder, such as %USER%\Downloads\MyApp\?

I don't want it to be a forced thing, but if we can get it to default to the desired location, it would at least be a good prompt for the user, and provide a better experience with other portions of the application.

I'm sure this can be done with a Java control, but it would be nice to be able to do it with some simple JavaScript or something instead.

like image 653
Brian H Avatar asked Dec 15 '10 19:12

Brian H


1 Answers

Nope, I'm fairly sure this is not possible using JavaScript on any browser.

The only thing you can suggest is the file's name.

like image 117
Pekka Avatar answered Oct 13 '22 00:10

Pekka