Update app/controllers/api/storage.php
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
parent
bceb600430
commit
eab5bd4d5d
|
@ -791,7 +791,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/download')
|
|||
;
|
||||
|
||||
if ($device->getFileSize($path) > APP_LIMIT_COMPRESSION) {
|
||||
$response->addHeader('Content-Length',$device->getFileSize($path));
|
||||
$response->addHeader('Content-Length', $device->getFileSize($path));
|
||||
|
||||
$handle = fopen($path, 'rb');
|
||||
while(!feof($handle)) {
|
||||
|
|
Loading…
Reference in a new issue