Skip to content

[_]: fix/upload-file-streams - #639

Merged
larryrider merged 3 commits into
mainfrom
feat/fix-upload-file-streams
Jul 28, 2026
Merged

[_]: fix/upload-file-streams#639
larryrider merged 3 commits into
mainfrom
feat/fix-upload-file-streams

Conversation

@larryrider

@larryrider larryrider commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

File uploads (both PUT via WebDAV and the upload-file CLI command) were buffering the entire file content in memory as a single growing Buffer (BufferStream doing Buffer.concat on every chunk) just to have a copy available for thumbnail generation alongside the network upload stream. For large files this caused unnecessary memory pressure and repeated buffer reallocation.
Now it only happens on the WebDAV PUT handler.

@larryrider
larryrider requested a review from AlexisMora July 24, 2026 16:01
@larryrider larryrider self-assigned this Jul 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
75.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@larryrider
larryrider merged commit c5b4848 into main Jul 28, 2026
8 of 9 checks passed
@larryrider
larryrider deleted the feat/fix-upload-file-streams branch July 28, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out of memory when uploading large file

2 participants