diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-10-30 12:33:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 12:33:13 +0100 |
commit | 1ec92c0497955422880ea2b29dd47d0fe512305c (patch) | |
tree | 2350bf0231acb41541d11db425f16d8606ccec4a | |
parent | 0578126ab7ecb96f637726cbd47a38577829142b (diff) | |
parent | d91380d138db6fc7a8ea60df4f67e785f33af03d (diff) | |
download | nextcloud-server-1ec92c0497955422880ea2b29dd47d0fe512305c.tar.gz nextcloud-server-1ec92c0497955422880ea2b29dd47d0fe512305c.zip |
Merge pull request #12040 from nextcloud/backport/12022/stable14
[14] Allow chunked uploads even if your quota is not sufficient
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Quota.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |