Forum Moderators: phranque

Message Too Old, No Replies

Forcing pdf documents to d/l via server mime types

         

Legacy777

8:51 pm on Mar 1, 2005 (gmt 0)

10+ Year Member



I have a fair amount of documents in pdf format on my server. The documents are being accessed/listed via directory browsing and not an html page. I'm using IIS 5 at the moment. I would like to set things up so that the pdf's download/"save to disk" rather then opening up in the browser window.

I know browser mime-types normally control that functionality, but I was wondering if there is anything I can do on the server end of things to force the pdf's to be downloaded.

TIA

Josh

bumpaw

4:13 am on Mar 3, 2005 (gmt 0)

10+ Year Member



I had a similar question here [webmasterworld.com]. I wound up giving the user a second option of a zip file. As you see in my last post there I found someone using a Javascript link on a asp set up, but after a good bit of looking I found no smooth solution. Hopefully you will.

Legacy777

4:22 am on Mar 3, 2005 (gmt 0)

10+ Year Member



I actually found your post when I searched before.

yeah there doesn't seem to be an easy answer. I've provided a zip file of all the pdf's, which I would d/l if it was me, but I'll continue to look into things. If I find anything out, I'll definitely post what I find out.

Josh