Skip to content

The quota check counts only the last file of a multi-file upload #3658

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

The quota check counts only the last file of a multi-file upload. Cause: packages/web-app-files/src/HandleUpload.ts:269 assigns uploadSize = … instead of adding (+=).

Reproduction Steps

  1. A space has a quota of 100 kB and is empty.
  2. Upload three 40 kB files together.

Expected Outcome

"Insufficient quota", as for a single 120 kB file.

Actual Outcome

All three are uploaded; the space ends up over quota (used 120000, state "exceeded").

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions