diff --git a/aspnetcore/fundamentals/minimal-apis.md b/aspnetcore/fundamentals/minimal-apis.md index 1e9b00031bad..04f4c4f58ed7 100644 --- a/aspnetcore/fundamentals/minimal-apis.md +++ b/aspnetcore/fundamentals/minimal-apis.md @@ -5,7 +5,7 @@ description: Provides an overview of Minimal APIs in ASP.NET Core ms.author: wpickett content_well_notification: AI-contribution monikerRange: '>= aspnetcore-6.0' -ms.date: 09/08/2025 +ms.date: 09/30/2025 uid: fundamentals/minimal-apis ai-usage: ai-assisted --- diff --git a/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding10.md b/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding10.md index d548482b567d..886130296135 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding10.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding10.md @@ -186,6 +186,8 @@ The following code shows the complete `Program.cs` file: #### File uploads using IFormFile and IFormFileCollection +File uploads using `IFormFile` and `IFormFileCollection` in minimal APIs require `multipart/form-data` encoding. The parameter name in the route handler must match the form field name in the request. Minimal APIs don't support binding the entire request body directly to an `IFormFile` parameter without form encoding. + The following code uses and to upload file: :::code language="csharp" source="~/fundamentals/minimal-apis/iformFile/7.0-samples/MinimalApi/Program.cs" ::: diff --git a/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding7.md b/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding7.md index 54b284265abd..0806c2504321 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding7.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding7.md @@ -162,6 +162,8 @@ The following code shows the complete `Program.cs` file: #### File uploads using IFormFile and IFormFileCollection +File uploads using `IFormFile` and `IFormFileCollection` in minimal APIs require `multipart/form-data` encoding. The parameter name in the route handler must match the form field name in the request. Minimal APIs don't support binding the entire request body directly to an `IFormFile` parameter without form encoding. + The following code uses and to upload file: :::code language="csharp" source="~/fundamentals/minimal-apis/iformFile/7.0-samples/MinimalApi/Program.cs" ::: diff --git a/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding8.md b/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding8.md index 841f36a6c64e..2409988f959c 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding8.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding8.md @@ -186,6 +186,8 @@ The following code shows the complete `Program.cs` file: #### File uploads using IFormFile and IFormFileCollection +File uploads using `IFormFile` and `IFormFileCollection` in minimal APIs require `multipart/form-data` encoding. The parameter name in the route handler must match the form field name in the request. Minimal APIs don't support binding the entire request body directly to an `IFormFile` parameter without form encoding. + The following code uses and to upload file: :::code language="csharp" source="~/fundamentals/minimal-apis/iformFile/7.0-samples/MinimalApi/Program.cs" ::: diff --git a/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding9.md b/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding9.md index b946ee939e75..53a9dd3425f1 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding9.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/parameter-binding9.md @@ -186,6 +186,8 @@ The following code shows the complete `Program.cs` file: #### File uploads using IFormFile and IFormFileCollection +File uploads using `IFormFile` and `IFormFileCollection` in minimal APIs require `multipart/form-data` encoding. The parameter name in the route handler must match the form field name in the request. Minimal APIs don't support binding the entire request body directly to an `IFormFile` parameter without form encoding. + The following code uses and to upload file: :::code language="csharp" source="~/fundamentals/minimal-apis/iformFile/7.0-samples/MinimalApi/Program.cs" :::