You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @DrewBrasher ... Yes, I think that's going to be a .NET 7 feature released later this year (or now via preview).
I think I'll try to work this into the first round of .NET 7 Blazor updates:
Place a NOTE for the 6.0 version of this doc.
No comment for the 7.0 version of the doc, since it doesn't show the Minimal API approach and will bind from a form (in theory 🤞🍀) if a dev converts the controller code over on their own (we won't show that).
No comment for the 5.0 version, as Minimal APIs were a 6.0 or later thing.
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.
The text was updated successfully, but these errors were encountered: