RicoSuter/NSwag

IFormFile parameter does not show upload button

Open

#2,428 opened on Sep 27, 2019

View on GitHub
 (3 comments) (3 reactions) (0 assignees)C# (1,189 forks)batch import
help wantedproject: NSwag.SwaggerGenerationproject: NSwag.SwaggerGeneration.AspNetCoretype: bug

Repository metrics

Stars
 (6,291 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

When using a parameter of type IFormFile, the swagger "Try it out" does not give an upload button. Instead it prompts for ContentType, ContentDisposition etc.

However, it behaves as expected if a List is specified. Refer to attachments Iformfile List_Iformfile

Contributor guide