Skip to content

[BUG] Uploaded files buffer into memory instead of disk #165

@MikuAdministrator

Description

@MikuAdministrator

Bug Description

When large files are uploaded, all of it goes to memory instead of disk. If the server runs on less memory than the uploaded file, the whole system hangs and only a reboot can fix it.

Reproduction Steps

  1. Set machine memory to some arbitrary amount like 1 GB
  2. Upload a file larger than 1 GB like 2 GB.
  3. Watch the memory fill up and eventually brick everything.

Expected Behavior

Uploaded files should get buffered in disk.

Actual Behavior

Uploaded files are buffered in memory, causing huge memory requirements for large files.

Screenshots

Image

🌍 Environment

  • OS: Arch Linux
  • Browser: Librewolf
  • Flare Version: 1.7.3
  • Deployment Method: Docker
  • Storage Method: Local Storage

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions