From: Robin Appelman Date: Wed, 3 Aug 2011 00:29:33 +0000 (+0200) Subject: send the filename header for public links X-Git-Tag: v3.0~267^2~295 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fdb944e7a3168204ec7138f400711591ef1d9667;p=nextcloud-server.git send the filename header for public links --- diff --git a/apps/files_publiclink/get.php b/apps/files_publiclink/get.php index 49bba901854..2e1ba4bf363 100644 --- a/apps/files_publiclink/get.php +++ b/apps/files_publiclink/get.php @@ -66,6 +66,7 @@ if($path!==false){ header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); + header('Content-Disposition: filename="'.basename($path).'"'); header('Content-Type: ' . $mimetype); header('Content-Length: ' . OC_Filesystem::filesize($path));