Saturday 04 April 2009 9:41:10 am
OK guys, figured it out myself. In case anyone else needs this: the config file settings/file.ini has an (undocumented ...) section, where you can associate a content-disposition method [1] for mime-types. I.e. you can specify that PDFs should be displayed in the browser. Works only if the browser can handle that type of file (i.e. has a PDF-plugin installed). The section looks like this and can be overriden in an override-template:
[PassThroughSettings]
# The default value for mime types not specified using ContentDisposition
# is "attachment". Possible values are attachment or inline. ContentDisposition[application/x-shockwave-flash]=inline
Cheers, Felix [1] http://www.ietf.org/rfc/rfc2183.txt
|