From e5471df5053e194aeada08fcb631ce3647f6d042 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 27 Feb 2024 15:06:22 +0000 Subject: [PATCH] [docker] fix max filesize / max uploads being counted wrong --- .docker/run.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.docker/run.php b/.docker/run.php index 2b7f766a..723ca2e4 100755 --- a/.docker/run.php +++ b/.docker/run.php @@ -20,8 +20,8 @@ $php_ini['max_file_uploads'] ??= getenv('MAX_FILE_UPLOADS') ?: "100"; $php_ini['upload_max_filesize'] ??= getenv('UPLOAD_MAX_FILESIZE') ?: '100M'; // this one needs to be calculated for the web server itself $php_ini['post_max_size'] ??= (string)( - ini_parse_quantity($php_ini['max_file_uploads']) * - intval($php_ini['upload_max_filesize']) + ini_parse_quantity($php_ini['upload_max_filesize']) * + intval($php_ini['max_file_uploads']) ); // Generate a config file for whatever web server we are using today