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
- Set machine memory to some arbitrary amount like 1 GB
- Upload a file larger than 1 GB like 2 GB.
- 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
🌍 Environment
- OS: Arch Linux
- Browser: Librewolf
- Flare Version: 1.7.3
- Deployment Method: Docker
- Storage Method: Local Storage
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
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
🌍 Environment