Merge pull request #12022 from nextcloud/fix/11485/fix_chuncked_uploads

Allow chunked uploads even if your quota is not sufficient
This commit is contained in:
Morris Jobke 2018-10-24 23:48:17 +02:00 committed by GitHub
commit efee3b149d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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);