Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Content Disposition

Added to file.ini there is a setting that can control, per mime type, which files should be downloaded or viewed inline in the browser. This setting controls how the "Content-disposition" header is set. The two valid…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/4.0/contentdisposition.txt

Content Disposition
===================

Added to file.ini there is a setting that can control, per mime type, which 
files should be downloaded or viewed inline in the browser. This setting 
controls how the "Content-disposition" header is set. The two valid values, 
"inline" or "attachment" tells the browser how to handle the file. 

Two use cases where controlling this is handy is:

1. Starting from Flash Player 10 the flash will no longer be loaded if the
header "Content-disposition: attachment;" is sent. 

2. It's often the case that users wants to view PDFs in their browser instead
of having to download to disk and then opening it. PDFs are by default downloaded.
To change PDFs to be viewed inline set the following setting in file.ini:

file.ini:
::

    [PassThroughSettings]
    ContentDisposition[application/pdf]=inline

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors