Skip to content

Commit

Permalink
Merge pull request #12040 from nextcloud/backport/12022/stable14
Browse files Browse the repository at this point in the history
[14] Allow chunked uploads even if your quota is not sufficient
  • Loading branch information
rullzer authored Oct 30, 2018
2 parents 0578126 + d91380d commit 1ec92c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Wrapper/Quota.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function getSize($path, $storage = null) {
* @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);
Expand Down

0 comments on commit 1ec92c0

Please sign in to comment.