summaryrefslogtreecommitdiffstats
path: root/files/download.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-26 15:01:16 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-26 15:01:16 +0200
commit8a6edd46541b47c4989c8666539b2c1ce2401c16 (patch)
tree3f4515e4cceeff63c44943f6ef668e1ffa26b5a4 /files/download.php
parentcb8c890594c0f5e87b51a40c33638282f801ac92 (diff)
downloadnextcloud-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.php1
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');