Upload file with swagger ui crash
I'm trying to upload IFormFIle with swagger ui and as soon as I select file and click select or cancel the backend application crashes without any error displayed. Can I fix it? Is it better to switch to Postman?


Program.cs file where you're mapping the contollers and step through. If everything else fails generate a fresh project and move your endpoint there to see what the problem is. What also helps is posting a ling to your repo to see your project setup and configurationputObjectArgsC#
[HttpPost("upload")]
public async Task<IActionResult> Upload(IFormFile? formFile)
{
if (formFile == null || formFile.Length == 0)
{
return BadRequest("No file uploaded.");
}
return Ok(new { message = "File uploaded to the bucket" });
}formFile