Swashbuckle Swagger UI FormData Type undefined

758 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 answers

0
Silly John On

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