send the filename header for public links

This commit is contained in:
Robin Appelman 2011-08-03 02:29:33 +02:00
parent 6527048164
commit fdb944e7a3
1 changed files with 1 additions and 0 deletions

View 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));