summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-10-30 12:33:13 +0100
committerGitHub <noreply@github.com>2018-10-30 12:33:13 +0100
commit1ec92c0497955422880ea2b29dd47d0fe512305c (patch)
tree2350bf0231acb41541d11db425f16d8606ccec4a
parent0578126ab7ecb96f637726cbd47a38577829142b (diff)
parentd91380d138db6fc7a8ea60df4f67e785f33af03d (diff)
downloadnextcloud-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.php2
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);