Open Lean365 opened 2 months ago
Please provide a minimal reproducible example as a GitHub repository that demonstrates the issue you're experiencing so we can look into this further.
The code snippet as-written isn't particularly useful for debugging as it references code you haven't provided.
Also provide details of the inner exception mentioned in the error, particularly its stack trace.
@Lean365 From v6.6.x and onward Swashbuckle will throw an error when a user uses FromForm attribute with IFormFile in controller methods.
Have a look at this documentation for more information : Handle Forms and File Uploads
Describe the bug
When using the [FromForm(Name = "file")] parameter, the swagger error code is as follows.
Swagger is normal when not in use. 6.5 The following versions are normal using [FromForm(Name = "file")].
Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
Exception(s) (if any)
No response
Swashbuckle.AspNetCore version
V6.6.1~6.7.3
.NET Version
net 8.0
Anything else?
No response