Web Hosting Talk







View Full Version : Mime Types


MikeM
01-25-2002, 01:36 PM
When a mime type is added to An apache virtual web server.
Such application/pdf pdf. ( this pretty standard, to allow the pdf to be viewed in a browser).
Is there a way to Force PDF to download when the link is clicked on??

Like htaccess maybe??

I havent found anything yet... any help would be apreciated.

allan
01-25-2002, 01:56 PM
Sure, remove the MIME type.

priyadi
01-25-2002, 02:23 PM
Removing the mime type is not a good idea, the default mime type is probably text/plain. Your PDF will get displayed as plain text on most browsers.

A better way is to use 'AddType application/octet-stream .pdf' in .htaccess file.

MikeM
01-25-2002, 02:51 PM
hmm removing the Mime type is not an option on a shared system... the htaccess is what i'm looking for.

This i s what I tried:

AddType application/octet-stream pdf

and

AddType application/octet-stream .pdf

Neither worked.. it still displays...
called it .htaccess I must be doing something wrong.

priyadi
01-26-2002, 12:40 AM
That's a common problem with some version of IE :(, but that probably will work on other browsers. Try changing the mime type to application/xx-octet-stream.