Skip to content

fix: properly handle file upload streams - #2632

Merged
Philipinho merged 8 commits into
mainfrom
fix/reject-oversized-uploads
Oct 31, 2026
Merged

Philipinho merged 8 commits into
mainfrom
fix/reject-oversized-uploads

Conversation

@Philipinho

Copy link
Copy Markdown
Member
  • fail the upload stream before it ends when the parser truncated the file
  • other fixes

- write streams to a temp file beside the target and rename on success
- remove the temp file and the emptied folder when the stream fails
- pin that S3 and Azure commit nothing for a failed stream
…m off

- fail the upload stream before it ends when the parser truncated the file
- reject truncated buffers when the limit lands on a chunk boundary
- fail the stream on client disconnect instead of hanging the upload
- return the size error from both import routes with the real 30mb limit
- log the zip import audit event only after the file is stored
- show the server's message on an explicit save and keep the editor open
- keep autosave failures quiet so the toast does not repeat
@Philipinho
Philipinho merged commit afc3f19 into main Oct 31, 2026
6 checks passed
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.

1 participant