Skip to content

Comments

Add first-class multipart upload support (#1419)#2191

Merged
jeremydmiller merged 2 commits intomainfrom
GH1419
Feb 15, 2026
Merged

Add first-class multipart upload support (#1419)#2191
jeremydmiller merged 2 commits intomainfrom
GH1419

Conversation

@jeremydmiller
Copy link
Member

Summary

  • Fix IFormFile binding to use ReadFormFileByName() with the parameter name instead of ReadSingleFormFileValue() (SingleOrDefault), enabling multiple named file parameters on a single endpoint
  • Add IFormCollection as a supported direct parameter type
  • Set IsFormData flag on file endpoints so they get proper multipart/form-data OpenAPI metadata
  • Enable the mixed [FromForm] ComplexType + IFormFile pattern as separate parameters

Closes #1419

Test plan

  • Multiple named IFormFile parameters bind correctly by form field name
  • [FromForm] complex type + separate IFormFile parameter works together
  • IFormCollection parameter receives form fields and files
  • Existing form binding tests pass (17/17)
  • Existing form parameter tests pass (28/28)

🤖 Generated with Claude Code

Fix IFormFile binding to use ReadFormFileByName with the parameter name
instead of ReadSingleFormFileValue (SingleOrDefault), enabling multiple
named file parameters. Add IFormCollection as a supported parameter type.
Set IsFormData on file endpoints for proper OpenAPI metadata.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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.

Add support for multipart uploads

1 participant