diff --git a/controllers/class.Download.php b/controllers/class.Download.php index beb5bdfdf..6479b5b3b 100644 --- a/controllers/class.Download.php +++ b/controllers/class.Download.php @@ -47,7 +47,7 @@ class SeedDMS_Controller_Download extends SeedDMS_Controller_Common { $file = $this->params['file']; if(!$this->callHook('file')) { - if(file_exists($dms->contentDir . $file->getPath()) { + if(file_exists($dms->contentDir . $file->getPath())) { header("Content-Type: application/force-download; name=\"" . $file->getOriginalFileName() . "\""); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . filesize($dms->contentDir . $file->getPath() ));