From ecebf3a8627f527cbd184b7907dd91f65764617b Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 2 Dec 2008 22:03:22 +0100 Subject: 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 --- lib/exe/xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/exe/xmlrpc.php') diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php index c2805cb01..97e473d7e 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -452,7 +452,7 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer { io_saveFile($ftmp, $buff); // get filename - list($iext, $imime) = mimetype($id); + list($iext, $imime,$dl) = mimetype($id); $id = cleanID($id); $fn = mediaFN($id); -- cgit v1.2.3