1
0
Fork 0
mirror of synced 2024-07-05 22:51:24 +12:00

Update app/controllers/api/storage.php

Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
Damodar Lohani 2021-07-13 16:46:00 +05:45 committed by GitHub
parent bceb600430
commit eab5bd4d5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {