diff --git a/backend/Controllers/DownloadController.php b/backend/Controllers/DownloadController.php index 85c3339..e312a31 100644 --- a/backend/Controllers/DownloadController.php +++ b/backend/Controllers/DownloadController.php @@ -65,11 +65,11 @@ class DownloadController // @codeCoverageIgnoreEnd }); - $contentDisposition = HeaderUtils::DISPOSITION_ATTACHMENT; + $contentDisposition = HeaderUtils::makeDisposition(HeaderUtils::DISPOSITION_ATTACHMENT, $file['filename'], 'file'); $contentType = 'application/octet-stream'; if (pathinfo($file['filename'], PATHINFO_EXTENSION) == 'pdf') { - $contentDisposition = HeaderUtils::DISPOSITION_INLINE; + $contentDisposition = HeaderUtils::makeDisposition(HeaderUtils::DISPOSITION_INLINE, $file['filename'], 'file'); $contentType = 'application/pdf'; }