Skip to content

File upload limited by size is blocked after assembling chunks #580

Description

@st3iny

Steps to reproduce

  1. Configure a rule to block uploads greater than 4 MB.
  2. Set the chunk size to 5 MB: occ config:app:set files max_chunk_size --value 5242880
  3. Upload a file bigger than 5 MB in the web interface, e.g. 10 MB.
  4. Observe the network log.

Configured flow

grafik

Only the last request is blocked, not the chunks

grafik

Expected behaviour

The upload should be blocked on the first chunk instead of wasting storage and bandwidth resources.

Actual behaviour

The upload is blocked after a large file has been uploaded and assembled on the server.

This is a regression of #211.

Server configuration

Operating system: Linux

Web server: Apache

Database: MariaDB

PHP version: 8.1

Nextcloud version: master

Where did you install Nextcloud from: Git

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions