From d91380d138db6fc7a8ea60df4f67e785f33af03d Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 24 Oct 2018 20:29:00 +0200 Subject: [PATCH] Allow chunked uploads even if your quota is not sufficient Fixes #11485 This allows uploads to shared folders. Signed-off-by: Roeland Jago Douma --- 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 860fce57277..4cbe9189593 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -83,7 +83,7 @@ class Quota extends Wrapper { * @return int */ public function free_space($path) { - if ($this->quota < 0 || strpos($path, 'cache') === 0) { + if ($this->quota < 0 || strpos($path, 'cache') === 0 || strpos($path, 'uploads') === 0) { return $this->storage->free_space($path); } else { $used = $this->getSize($this->sizeRoot); -- 2.39.5