diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-26 15:01:16 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-26 15:01:16 +0200 |
commit | 8a6edd46541b47c4989c8666539b2c1ce2401c16 (patch) | |
tree | 3f4515e4cceeff63c44943f6ef668e1ffa26b5a4 /files/download.php | |
parent | cb8c890594c0f5e87b51a40c33638282f801ac92 (diff) | |
download | nextcloud-server-8a6edd46541b47c4989c8666539b2c1ce2401c16.tar.gz nextcloud-server-8a6edd46541b47c4989c8666539b2c1ce2401c16.zip |
Show currect filename when downloading files
Diffstat (limited to 'files/download.php')
-rw-r--r-- | files/download.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/files/download.php b/files/download.php index f99b8d567e9..f7fbcd0f857 100644 --- a/files/download.php +++ b/files/download.php @@ -44,6 +44,7 @@ if(!OC_FILESYSTEM::file_exists($filename)){ $ftype=OC_FILESYSTEM::getMimeType( $filename ); header('Content-Type:'.$ftype); +header('Content-Disposition: attachment; filename="'.basename($filename).'"'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); |