From e3e350241d5c7b9dd0ffc8ab9c53f4fc0661d35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 24 Apr 2025 15:54:03 +0200 Subject: [PATCH] Fix typo --- app/controllers/api/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 28322916a7..78814824f7 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1375,7 +1375,7 @@ App::post('/v1/functions/:functionId/deployments') } } - if (!$fileSizeValidator->isValid($fileSize) && $fileSize !== 0) { // Check if file size is exceeding allowed limit + if (!$fileSizeValidator->isValid($fileSize) && $sizeLimit !== 0) { // Check if file size is exceeding allowed limit throw new Exception(Exception::STORAGE_INVALID_FILE_SIZE); }