nextcloud / nextcloud/server

Dissmiss upload of files exceeding free quota BEFORE starting upload

Open
#51,977 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: files hotspot: file transfer performance
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Is your feature request related to a problem? Please describe.
When uploading a file that is bigger than the free quota of the owner of the target directory, the upload is starting and actually uploading for quite a while and uploads multiple Gigabytes before it finally fails.

Describe the solution you'd like
When the user is trying to upload a file that is bigger than the free quota of the owner of the target directory, the upload should not be started at all and instead a warning like "Upload not possible - not enough free quota" should be displayed.

Additional context
This issue is present in the web interface as well as with the sync client.

The behaviour is especialy problematic because the sync client tries the upload again periodically and so it uploads a potentially large amount of data over and over again. That drains the battery of the client device and utilizes bandwith on the server.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the issue description and trace how quota checks are handled before uploads in both the web interface and sync-client flow. Done means an over-quota file is rejected before any data transfer, displays the requested warning, and does not repeatedly retry the upload.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.