1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

Merge branch 'feat-large-file' of github.com:lohanidamodar/appwrite into feat-large-file

This commit is contained in:
Damodar Lohani 2021-07-13 16:47:09 +05:45
commit e5e6425a3d

View file

@ -794,7 +794,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)) {