How do I do file upload using ASP.NET Core 6 minimal api?
I want to create a simple file upload endpoint in ASP.NET Core 6 and thought it would be as easy as described here https://dotnetthoughts.net/handling-file-uploads-in-openapi-with-aspnet-core/. When I have an endpoint defined like: app.MapPost("/upload", (IFormFile file) => { //Do something with the…