summaryrefslogtreecommitdiffstats
path: root/files/download.php
diff options
context:
space:
mode:
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');