1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

error code

This commit is contained in:
Damodar Lohani 2022-02-16 09:44:52 +00:00
parent 947d9dc57a
commit e7a36f4302

View file

@ -910,7 +910,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview')
}
if($file->getAttribute('sizeActual') > APP_LIMIT_PREVIEW) {
throw new Exception('Preview not supported for file above ' . Storage::human(APP_LIMIT_PREVIEW) . ' in size.');
throw new Exception('Preview not supported for file above ' . Storage::human(APP_LIMIT_PREVIEW) . ' in size.', 400);
}
$path = $file->getAttribute('path');