nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
2.97k stars 784 forks source link

Check for server quota before trying to upload files #4580

Open tobiasKaminsky opened 2 years ago

tobiasKaminsky commented 2 years ago

Situation: A user creates a file within a local folder that is synchronized by her desktop client. That file is larger than the remaining free space of that user on the server. The remaining free space is correctly shown within the client UI.

Expected behavior: The sync client recognizes that the file is larger than the remaining free space on the server. It does neither try to upload the file nor does it retry to upload the file, until sufficient free space is available on the server.

Actual behavior: The sync client uploads the file anyways. The upload then fails at the end because there is not enough free space available for that particular user on the server. The sync client retries to upload after several minutes, over and over again. This leads to several Mbit/s of bandwidth constantly being used by some users and Gigabytes of (the same) data that is transmitted and then discarded.

itprostuff commented 1 year ago

Is there any plan when this will be implemented?

kurjajuur666 commented 1 year ago

Just had a user try and upload 25TB worth of data in a week with their quota full. Would be a pretty neat thing to have.