coldscooter
06-23-2008, 07:24 AM
I would like to put a link on a web page that asks the user if they would like to download a PDF document instead of opening it in the browser.
Can anyone help me?
Can anyone help me?
|
Click to See Complete Forum and Search --> : <A HREF> to download PDF instead of opening... coldscooter 06-23-2008, 07:24 AM I would like to put a link on a web page that asks the user if they would like to download a PDF document instead of opening it in the browser. Can anyone help me? Declan1991 06-23-2008, 09:17 AM You will have to set the header to something using a server side language or .htaccess. What is available on your server? coldscooter 06-23-2008, 09:57 AM I am not sure what sever I am using. I am using a marketing automation system that hosts its own web pages. I just need to be able to insert an html link to a web hosted document which, when clicked on, opens an "open or save" windows prompt. Thanks Declan1991 06-23-2008, 10:11 AM Normally that is what the browser will do automatically. If the user has their settings changed, you cannot force it without passing a header, which you cannot do from a link. coldscooter 06-23-2008, 10:25 AM How do you go about passing a header to serve this purpose? felgall 06-23-2008, 02:58 PM How do you go about passing a header to serve this purpose? It depends on which server side language you are using as a wrapper around the file. The header you need to change is the Content-Disposition which you need to set to attachment in order for the file to be offered for download instead of displaying. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |