mirror of
https://github.com/filegator/filegator.git
synced 2025-08-08 01:06:31 +02:00
download headers
This commit is contained in:
@@ -69,6 +69,14 @@ class DownloadController
|
|||||||
'Content-Disposition',
|
'Content-Disposition',
|
||||||
HeaderUtils::makeDisposition(HeaderUtils::DISPOSITION_ATTACHMENT, $file['filename'])
|
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
|
// close session so we can continue streaming, note: dev is single-threaded
|
||||||
$this->session->save();
|
$this->session->save();
|
||||||
@@ -126,6 +134,14 @@ class DownloadController
|
|||||||
$this->config->get('frontend_config.default_archive_name')
|
$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
|
// close session so we can continue streaming, note: dev is single-threaded
|
||||||
$this->session->save();
|
$this->session->save();
|
||||||
|
Reference in New Issue
Block a user