diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index abf7b58e59..3a866b5447 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1312,7 +1312,7 @@ App::post('/v1/functions/:functionId/deployments') throw new Exception(Exception::STORAGE_FILE_EMPTY, 'No file sent'); } - $functionSizeLimit = System::getEnv('_APP_FUNCTIONS_SIZE_LIMIT', '30000000'); + $functionSizeLimit = (int) System::getEnv('_APP_FUNCTIONS_SIZE_LIMIT', '30000000'); if (isset($plan['functionSize'])) { $functionSizeLimit = $plan['functionSize'] * 1000 * 1000;