]> source.dussan.org Git - nextcloud-server.git/commitdiff
send the filename header for public links
authorRobin Appelman <icewind1991@gmail.com>
Wed, 3 Aug 2011 00:29:33 +0000 (02:29 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Wed, 3 Aug 2011 00:29:33 +0000 (02:29 +0200)
apps/files_publiclink/get.php

index 49bba9018542a073d2d06add76da51dbfa238947..2e1ba4bf363cc18bb67231d3a04c9c742696e503 100644 (file)
@@ -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));