Questions tagged [asp.net-minimal-apis]
16 questions
0
votes
1 answer
When uploading IFormFile file with minimalAPI in swagger, the file is null
I'm trying to write a http post using minimal API in C# NetCore7, that recieves IFormFile file.
MinimalAPI:
var group = app.MapGroup("Payment").WithTags("Payment").WithOpenApi();
group.MapPost("htmlToPdf", async (IFormFile file) =>
{
…

ayala
- 331
- 1
- 9