send the filename header for public links
This commit is contained in:
parent
6527048164
commit
fdb944e7a3
|
@ -66,6 +66,7 @@ if($path!==false){
|
||||||
header('Expires: 0');
|
header('Expires: 0');
|
||||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||||
header('Pragma: public');
|
header('Pragma: public');
|
||||||
|
header('Content-Disposition: filename="'.basename($path).'"');
|
||||||
header('Content-Type: ' . $mimetype);
|
header('Content-Type: ' . $mimetype);
|
||||||
header('Content-Length: ' . OC_Filesystem::filesize($path));
|
header('Content-Length: ' . OC_Filesystem::filesize($path));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue