mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Update app/controllers/api/functions.php
Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
This commit is contained in:
parent
6852ee1f0f
commit
5d9bdd4cc7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue