[thelist] Serving PDFs

Noah St. Amand noah at tookish.net
Wed Feb 21 16:32:22 CST 2007

Hi Chris,

Chris Price wrote (2/21/07 12:05 PM):
> I'm telling IE that the content-type is application/pdf, the 
> content-disposition is attachment, and the file length.

This might be a bad practice, but I've had good luck with just the 

header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="file.pdf"');

I don't think I'm sending the length of the file anywhere. This might be 
worth a shot.


More information about the thelist mailing list