Skip to content

Fixes for "max upload size" value showed in the UI - #5711

Merged
MorrisJobke merged 2 commits into
masterfrom
quota-refreshquotainclientafteroperations
Nov 6, 2013
Merged

MorrisJobke merged 2 commits into
masterfrom
quota-refreshquotainclientafteroperations

Conversation

@PVince81

@PVince81 PVince81 commented Nov 6, 2013

Copy link
Copy Markdown
Contributor

This fix brings the following:

  1. Update the "max upload size" value after scanFiles() is done and also after file uploads to reflect a more actual value
  2. The "max upload size" aka storage statistics are now shown based on which directory the user is currently in, which can change between "user storage", "external storage" and "shared storage of another user"

Note that for the "shared storage" case I need to look into why it's not using the quota stream wrapper, which I'll address in a separate PR.

Please review @karlitschek @icewind1991 @DeepDiver1975

Vincent Petry added 2 commits November 6, 2013 10:15
After uploading, the quota value wasn't refreshed.
This fix refreshes the quota value after files have been scanned or
uploaded.
Previously, the storage statistics were always for the root dir.
This means that the upload button would always show the limit for the
root dir, even when uploading to a shared dir or external storage.

This fix adds a "dir" argument to getstoragestats.php.
@karlitschek

Copy link
Copy Markdown
Contributor

Great 👍

@ghost

ghost commented Nov 6, 2013

Copy link
Copy Markdown

@friscoMad

Copy link
Copy Markdown
Contributor

Please, also add update of max upload size when deleting, as it is not being updated properly right now.

@PVince81

PVince81 commented Nov 6, 2013

Copy link
Copy Markdown
Contributor Author

When deleting, the file goes to the trashbin and still counts as used space... I'm not 100% clear about the logic (CC @schiesbn).
But I can try and add it when the trashbin app is disabled.

@PVince81

PVince81 commented Nov 6, 2013

Copy link
Copy Markdown
Contributor Author

@frisco82 the fix is already in, in FileList.do_delete. You'll only see an update when the trashbin app is disable, as per the reasons mentionned above.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Works great 👍

MorrisJobke added a commit that referenced this pull request Nov 6, 2013
…roperations

Fixes for "max upload size" value showed in the UI
@MorrisJobke
MorrisJobke merged commit 1fa1cf4 into master Nov 6, 2013
@MorrisJobke
MorrisJobke deleted the quota-refreshquotainclientafteroperations branch November 6, 2013 14:49
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants