diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 47f8c4769..97a7fb173 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -489,7 +489,7 @@ App::post('/v1/functions/:functionId/deployments') $file = $request->getFiles('code'); $fileExt = new FileExt([FileExt::TYPE_GZIP]); - $fileSizeValidator = new FileSize(App::getEnv('_APP_STORAGE_LIMIT', 0)); + $fileSizeValidator = new FileSize(App::getEnv('_APP_FUNCTIONS_DEPLOYMENT_LIMIT', 0)); $upload = new Upload(); if (empty($file)) {