Angus at InfoForce Services wrote:
I do not know if this is off topic,
It's on topic because it's about MIME types, and MIME types are a standard.
A web site I maintain has a PDF to download.
The host uses apache so if I use ".htaccess" in the root directory with the
line:
addType application/download .pdf
No, use this:
AddType application/pdf .pdf
(This may already be configured in the server's httpd.conf file, so that
may even be unnecessary)
It's cruel and unnecessary to use the wrong MIME type in order to force
a file to be downloaded, use the correct MIME type and let the user's
system decide what to do with the file. Some may have configured
their's to automatically open PDFs, others may have configured it to
save it to a file, and others have it set to prompt (e.g. the PDF
Download extension).
--
Lachlan Hunt
http://lachy.id.au/
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************