You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the [FromForm(Name = "file")] parameter, the swagger error code is as follows.
public IActionResult ImportData([FromForm(Name ="file")]IFormFileformFile){List<MmMarbDto>list=new();using(varstream= formFile.OpenReadStream()){list= stream.Query<MmMarbDto>(startCell:"A1").ToList();}return SUCCESS(_MmMarbService.ImportMmMarb(list.Adapt<List<MmMarb>>()));}
08-29 10:51:08|::1|0HN67QLM2IATC|http://localhost/swagger/routine/swagger.json
Failed to generate Operation for action - Ams.WebApi.Controllers.Routine.InstCorpController.ImportData (Ams.WebApi). See inner exception
public IActionResult ImportData(IFormFileformFile)//[FromForm(Name = "file")]{List<MmMarbDto>list=new();using(varstream= formFile.OpenReadStream()){list= stream.Query<MmMarbDto>(startCell:"A1").ToList();}return SUCCESS(_MmMarbService.ImportMmMarb(list.Adapt<List<MmMarb>>()));}
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: