Skip to content

fix: reject empty upload submissions with 400 - #11577

Open
samuelpatak-png wants to merge 3 commits into
SecureBananaLabs:mainfrom
samuelpatak-png:fix/11566-upload-empty-file
Open

fix: reject empty upload submissions with 400#11577
samuelpatak-png wants to merge 3 commits into
SecureBananaLabs:mainfrom
samuelpatak-png:fix/11566-upload-empty-file

Conversation

@samuelpatak-png

Copy link
Copy Markdown

Summary

Rejects multipart uploads without a file field using HTTP 400 while successful uploads remain 201.

Test plan

  • Added focused regression tests
  • Ran npm test in apps/api (3 clean passes)

Closes #11566

Made with Cursor

Closes SecureBananaLabs#11566

Co-authored-by: Cursor <cursoragent@cursor.com>
github-actions Bot added a commit that referenced this pull request Aug 3, 2026
Spark1231231 and others added 2 commits August 3, 2026 17:35
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Bug: upload endpoint accepts empty file submissions as successful uploads

2 participants