fix(uploads): bound multipart body read in workspace-file and knowledge-document upload routes#5413
Conversation
…ge-document upload routes
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Caps use the existing file size limits plus a shared New route tests cover declared Reviewed by Cursor Bugbot for commit f8f83b8. Configure here. |
|
Fixed — |
|
@greptile review |
1 similar comment
|
@greptile review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit f8f83b8. Configure here.
|
@greptile review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit f8f83b8. Configure here.
Summary
readFormDataWithLimithelper instead of rawrequest.formData(), matching the pattern already used byfiles/uploadandv1/filesType of Change
Testing
Added route tests covering: declared content-length over the limit rejected immediately, chunked/no-content-length body over the limit rejected once the streaming cap trips, and a normal under-limit upload still succeeding. Ran the full route test suites, typecheck, biome, and
bun run check:api-validation— all pass.Checklist