Pooja Kedar Pooja Kedar - 4 years ago 128
AngularJS Question

How to forcefully open the file browser to save the file before downloading?

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


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

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