]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow chunked uploads even if your quota is not sufficient 12040/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 24 Oct 2018 18:29:00 +0000 (20:29 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 25 Oct 2018 11:53:52 +0000 (13:53 +0200)
Fixes #11485

This allows uploads to shared folders.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Files/Storage/Wrapper/Quota.php

index 860fce57277435a6fe903424ce2180d40c6789e9..4cbe9189593627eafb9b450cf86749d82d729370 100644 (file)
@@ -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);