-
Couldn't load subscription status.
- Fork 25.1k
Add IFormFile binding information to minimal APIs documentation #36171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add IFormFile binding information to minimal APIs documentation #36171
Conversation
Co-authored-by: wadepickett <[email protected]>
|
@copilot, |
Co-authored-by: wadepickett <[email protected]>
Reverted the changes to the three files as requested. Commit: 780b4e4 The PR now only includes changes to:
|
|
@copilot, this file in this PR: Needs its name to change to match the changed name in the main branch. Rename the file to this: |
…in branch Co-authored-by: wadepickett <[email protected]>
... Renamed the file from The file now includes the IFormFile binding clarification and aligns with the consolidated parameter binding documentation for ASP.NET Core versions 8.0-10.0. |
Added links for binding to entire request body per review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
Fixes #36060
Summary
This PR adds clarification to the minimal APIs documentation regarding
IFormFilebinding requirements in response to user feedback indicating confusion about whether form encoding is required or if the entire request body can be interpreted as the file.Problem
Users were unclear about the requirements for using
IFormFilein minimal APIs, specifically:multipart/form-dataencoding is mandatoryIFormFileparameterChanges
Added explicit clarification to the "File uploads using IFormFile and IFormFileCollection" section in the parameter binding documentation for ASP.NET Core 8.0-10.0:
Added text:
This clarification is placed immediately before the code example to ensure developers understand the requirements before implementing file uploads.
Files Modified
aspnetcore/fundamentals/minimal-apis.md- Updatedms.dateto 10/22/2025aspnetcore/fundamentals/minimal-apis/includes/parameter-binding8-10.md- Added IFormFile binding clarification for ASP.NET Core 8.0-10.0 (consolidated parameter binding documentation)Validation
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Internal previews