From d6126a281411fe6d05097c59bb812bf9a3939a54 Mon Sep 17 00:00:00 2001 From: Bruno Sousa Date: Thu, 10 Sep 2026 13:36:51 -0300 Subject: [PATCH] Fix quota handling for unlimited object storage --- lib/private/Files/Storage/Wrapper/Quota.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Storage/Wrapper/Quota.php b/lib/private/Files/Storage/Wrapper/Quota.php index 11b992dbf9727..d41ff6ff0e958 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -229,7 +229,7 @@ public function writeStream(string $path, $stream, ?int $size = null): int { } if ($size !== null) { - if ($size < $free) { + if ($free < 0 || $size < $free) { return parent::writeStream($path, $stream, $size); } else { throw new NotEnoughSpaceException();