diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-12 12:27:47 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-12 12:27:47 +0200 |
commit | a3c31247628e927ab53f6f76c07dfedf391cd0b2 (patch) | |
tree | 6101c9b229183d79c804a20d14ba09fe6bd2e851 /apps/dav/lib | |
parent | af42ca20252b166bec2da34970137ec790a18328 (diff) | |
download | nextcloud-server-a3c31247628e927ab53f6f76c07dfedf391cd0b2.tar.gz nextcloud-server-a3c31247628e927ab53f6f76c07dfedf391cd0b2.zip |
Allow file upload when storage is unlimited
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/QuotaPlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php index 4aef5fc8a5a..f0958c353a1 100644 --- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php +++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php @@ -106,7 +106,7 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin { $uri = rtrim($parentUri, '/') . '/' . $info['name']; } $freeSpace = $this->getFreeSpace($uri); - if ($freeSpace !== FileInfo::SPACE_UNKNOWN && $length > $freeSpace) { + if ($freeSpace !== FileInfo::SPACE_UNKNOWN && $freeSpace !== FileInfo::SPACE_UNLIMITED && $length > $freeSpace) { if (isset($chunkHandler)) { $chunkHandler->cleanup(); } |