mirror of
https://github.com/filegator/filegator.git
synced 2025-07-31 21:50:41 +02:00
download headers
This commit is contained in:
@@ -69,6 +69,14 @@ class DownloadController
|
||||
'Content-Disposition',
|
||||
HeaderUtils::makeDisposition(HeaderUtils::DISPOSITION_ATTACHMENT, $file['filename'])
|
||||
);
|
||||
$streamedResponse->headers->set(
|
||||
'Content-Type',
|
||||
'application/octet-stream'
|
||||
);
|
||||
$streamedResponse->headers->set(
|
||||
'Content-Transfer-Encoding',
|
||||
'binary'
|
||||
);
|
||||
|
||||
// close session so we can continue streaming, note: dev is single-threaded
|
||||
$this->session->save();
|
||||
@@ -126,6 +134,14 @@ class DownloadController
|
||||
$this->config->get('frontend_config.default_archive_name')
|
||||
)
|
||||
);
|
||||
$streamedResponse->headers->set(
|
||||
'Content-Type',
|
||||
'application/octet-stream'
|
||||
);
|
||||
$streamedResponse->headers->set(
|
||||
'Content-Transfer-Encoding',
|
||||
'binary'
|
||||
);
|
||||
|
||||
// close session so we can continue streaming, note: dev is single-threaded
|
||||
$this->session->save();
|
||||
|
Reference in New Issue
Block a user