It would be helpful if this page had a note that the example only works with a controller api because the minimal API does not natively support binding from form values (https://docs.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0#explicit-parameter-binding).
This Stack Overflow answer has some was to do it with minimal api: https://stackoverflow.com/questions/71047077/net-6-minimal-api-and-multipart-form-data#answer-71048827
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
It would be helpful if this page had a note that the example only works with a controller api because the minimal API does not natively support binding from form values (https://docs.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0#explicit-parameter-binding).
This Stack Overflow answer has some was to do it with minimal api: https://stackoverflow.com/questions/71047077/net-6-minimal-api-and-multipart-form-data#answer-71048827
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.