Archive of UserLand's first discussion group, started October 5, 1998.
Re: Serving pdf documents
Author: André Radke Posted: 5/16/1999; 11:52:24 AM Topic: A dream: Posting to a DG via email Msg #: 6324 (In response to 6321) Prev/Next: 6323 / 6325
Main responder pushes it out with Content-type + "text/html". Is there any way of forcing/persuading main responder to change this to "application/pdf" so that the browser knows what to do?Yes, mainResponder looks at the user.webserver.prefs.type2MIME table to convert odb types to MIME types, mainResponder.getODBMimeType is the script that does the actual work.
In fact, user.webserver.prefs.type2MIME already contains an entry for the binary type 'PDF '. When you look at the PDF file you imported, what binary type are they?
There are responses to this message:
- Re: Serving pdf documents, Chris Bunch, 5/16/1999; 1:27:48 PM
This page was archived on 6/13/2001; 4:50:13 PM.
© Copyright 1998-2001 UserLand Software, Inc.