From e7a36f43025145ba20b46c57423c64ae9325ab63 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 16 Feb 2022 09:44:52 +0000 Subject: [PATCH] error code --- app/controllers/api/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index c8441c971a..d0e8cb0891 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -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');