Skip to content
Snippets Groups Projects
Commit fdb944e7 authored by Robin Appelman's avatar Robin Appelman
Browse files

send the filename header for public links

parent 65270481
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment