mirror of
https://github.com/filegator/filegator.git
synced 2025-06-05 12:55:04 +02:00
Download filename fix
This commit is contained in:
parent
5a5bd01e55
commit
f49f6bb00b
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user