-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow chunked uploads even if your quota is not sufficient #12022
Conversation
Fixes #11485 This allows uploads to shared folders. Signed-off-by: Roeland Jago Douma <[email protected]>
@lubo @neeral85 @loeffelpan please have a look as well |
@@ -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) { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Because that would be files/uploads
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ... missed that part. My brain was faster than I could read. It autocompleted to !== false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
Fixes #11485
This allows uploads to shared folders.
To test just follow the steps in #11485