diff --git a/apps/files/lib/Service/ChunkedUploadConfig.php b/apps/files/lib/Service/ChunkedUploadConfig.php index 29661750f8b..0bf83b649c7 100644 --- a/apps/files/lib/Service/ChunkedUploadConfig.php +++ b/apps/files/lib/Service/ChunkedUploadConfig.php @@ -25,6 +25,6 @@ class ChunkedUploadConfig { } public static function getMaxParallelCount(): int { - return Server::get(IConfig::class)->getSystemValueInt(self::KEY_MAX_PARALLEL_COUNT, 5); + return max(1, Server::get(IConfig::class)->getSystemValueInt(self::KEY_MAX_PARALLEL_COUNT, 5)); } }