Skip to content
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

Merged
merged 1 commit into from
Oct 24, 2018

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Oct 24, 2018

Fixes #11485

This allows uploads to shared folders.

To test just follow the steps in #11485

Fixes #11485

This allows uploads to shared folders.

Signed-off-by: Roeland Jago Douma <[email protected]>
@rullzer
Copy link
Member Author

rullzer commented Oct 24, 2018

@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.

Copy link
Member Author

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

Copy link
Member

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

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants