diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-12-02 22:03:22 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-12-02 22:03:22 +0100 |
commit | ecebf3a8627f527cbd184b7907dd91f65764617b (patch) | |
tree | b8cc9e688deccab5f9b3a78258f666ecc624c4c5 /conf | |
parent | 02a002e903ab4b1afa2e1c3d7c2b3e44d77783fa (diff) | |
download | rpg-ecebf3a8627f527cbd184b7907dd91f65764617b.tar.gz rpg-ecebf3a8627f527cbd184b7907dd91f65764617b.tar.bz2 |
Make content-disposition configurable in mime.conf FS#1541
With this patch it is possible to define if a file should be served as download
or be displayed inside the browser (if supported) by configuring it in
conf/mime.conf
Mimetypes that should be served with a "Content-Disposition: attachment" header
need to be prefixed with a exclamation mark. All others will be served inline.
This will also fix a Problem with Flash 10.
darcs-hash:20081202210322-7ad00-6e7ef30aff9322cd135311be77809187da121f3b.gz
Diffstat (limited to 'conf')
-rw-r--r-- | conf/mime.conf | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/conf/mime.conf b/conf/mime.conf index 68262aa7e..2e1ce6bb0 100644 --- a/conf/mime.conf +++ b/conf/mime.conf @@ -1,38 +1,41 @@ -#Add extensions and mimetypes of files you want to allow to upload here +# Allowed uploadable file extensions and mimetypes are defined here. +# To extend this file it is recommended to create a mime.local.conf +# file. Mimetypes that should be downloadable and not be opened in the +# should be prefixed with a ! jpg image/jpeg jpeg image/jpeg gif image/gif png image/png -tgz application/octet-stream -tar application/x-gtar -gz application/octet-stream -bz2 application/octet-stream -zip application/zip -rar application/rar +tgz !application/octet-stream +tar !application/x-gtar +gz !application/octet-stream +bz2 !application/octet-stream +zip !application/zip +rar !application/rar pdf application/pdf -ps application/postscript -doc application/msword -xls application/msexcel -ppt application/mspowerpoint -rtf application/msword +ps !application/postscript +doc !application/msword +xls !application/msexcel +ppt !application/mspowerpoint +rtf !application/msword swf application/x-shockwave-flash -rpm application/octet-stream -deb application/octet-stream +rpm !application/octet-stream +deb !application/octet-stream -sxw application/soffice -sxc application/soffice -sxi application/soffice -sxd application/soffice +sxw !application/soffice +sxc !application/soffice +sxi !application/soffice +sxd !application/soffice -odc application/vnd.oasis.opendocument.chart -odf application/vnd.oasis.opendocument.formula -odg application/vnd.oasis.opendocument.graphics -odi application/vnd.oasis.opendocument.image -odp application/vnd.oasis.opendocument.presentation -ods application/vnd.oasis.opendocument.spreadsheet -odt application/vnd.oasis.opendocument.text +odc !application/vnd.oasis.opendocument.chart +odf !application/vnd.oasis.opendocument.formula +odg !application/vnd.oasis.opendocument.graphics +odi !application/vnd.oasis.opendocument.image +odp !application/vnd.oasis.opendocument.presentation +ods !application/vnd.oasis.opendocument.spreadsheet +odt !application/vnd.oasis.opendocument.text # You should enable HTML and Text uploads only for restricted Wikis. # Spammers are known to upload spam pages through unprotected Wikis. |