Swashbuckle Swagger UI FormData Type undefined

770 Views Asked by At

enter image description here

I'm using Swashbuckle 5.1.5 for my rest API for upload images, but form data parameters Data Type is coming up as undefined. How do you set the Data Type?

operation.parameters.Add(new Parameter
{
   name = "file",
   required = true,
   type = "file",
   @in = "formData"
}
1

There are 1 best solutions below

0
On

This should be working fine. I am using the latest swashbuckle version. Can you try with the latest version