diff --git a/src/Api/Upload.php b/src/Api/Upload.php index 2f822be37b..72e532f6e2 100644 --- a/src/Api/Upload.php +++ b/src/Api/Upload.php @@ -84,13 +84,13 @@ public static function chunkSize(): int Str::toBytes(ini_get('post_max_size')) ]; - //if server is behind a cloudflare proxy + // if server is behind a cloudflare proxy if (isset($_SERVER['HTTP_CF_CONNECTING_IP']) === true) { $max[] = Str::toBytes('100M'); } - // to be sure, only use 90% of the max possible upload size - return (int)floor(min($max) * 0.9); + // to be sure, only use 95% of the max possible upload size + return (int)floor(min($max) * 0.95); } /**