Pooja Kedar Pooja Kedar - 4 years ago 122
AngularJS Question

How can I force the chrome browser to open file browser asking where to save the file before downloading using JavaScript and/or AngularJs?

I want my chrome browser to forcefully pop up dialog box for download(i.e Save As). Without user manually changing the settings for Downloads in chrome browser.
Is there a way doing it using angular js or javascript or jquery.

Answer Source

Welcome to SO!

There is no way to do what you're suggesting for security reasons. You don't have rights to choose where the file will go on their OS. JS won't go any deeper than the user's browser. What your asking for is essentially FS (file system) read-write permissions.

Make sure to do a little searching around before you ask new questions, as this one was already answered here: Directory Chooser in HTML page

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download