Forcing the browser to pop a save as dialog box from a link pointing to remote url
Posted
by user360788
on Stack Overflow
See other posts from Stack Overflow
or by user360788
Published on 2010-06-09T17:39:20Z
Indexed on
2010/06/09
17:42 UTC
Read the original article
Hit count: 240
http
Hi, I am building a web app that lets the user directly download files on a cdn by clicking a link. The link should point to the cdn url directly in order to minimize the load on our servers.
We would like the to have the browser pop up the save as dialog box when the user clicks the link to download the file and not have the browser display the content of the file at all. So the page should not reload. However, we don't have access to setting the HTTP headers sent back from cdn. Is it possible to still pop up the save as dialog box for download using client-side code?
© Stack Overflow or respective owner