Force a Browser to Save File as After Clicking Link

Force a browser to save file as after clicking link

You could use the HTML5 download attribute like so:

<a href="path/to/file" download>Click here to download</a>

This opens a "save as" dialog regardless of file type without taking you away from the page.

a link - force Chrome to save file instead of opening

There seems to be a solution with HTML 5 (download attribute):

<a href="path/to/file" download>Download Now</a>

html5 a download force save as dialogue

This is a browser (chrome ? ) feature.

Your users may configure it as they wish.

Screenshot of Chrome's settings

Neither you nor even FileSaver.js can do anything about it...

Force a link to open a Save link as dialog

If I understood correctly and without any plugins, I think it is almost impossible. The only way you can do that would require you to verify the browser and for some browser like Chrome (due the spec http://dev.w3.org/2009/dap/file-system/file-dir-sys.html ) you can do that.



Related Topics



Leave a reply



Submit