Support IFormFile using Swashbuckle
See original GitHub issueSwashbuckle.AspNetCore
version 4.0.0 implemented file upload when using IFormFile
(you can read more about it here). I am unsure if this a template or aspnetboilerplate issue, but I already spent 6 hours trying to make it work with no success.
Has anyone been able to make it work or could point me in a direction?
Besides that, could anyone give me a suggestion as an alternative to implement file upload when working with angular + AppServices? The tutorials I found online don’t work well with nswag typescript generator.
Thanks in advance.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to get a upload button in swagger for IFormFile ...
In ASP.NET Core Web API, it binds application/json format data by default. But what your model need is multipart/form-data type data.
Read more >Testing file upload with Swagger in ASP.Net core
IFormFile file = HttpContext.Request.Form.Files[0]; _logger.LogInformation(file.FileName); // we can put rest of upload logic here.
Read more >WithOpenApi IFormFile support is not generating valid ...
Microsoft.AspNetCore.Http.BadHttpRequestException: Required parameter "IFormFile file" was not provided from form file. Although this actually ...
Read more >Better file upload integration with Swagger on Minimal APIs
These framework provided interfaces IFormFile to upload a file and handle it server-side and IFormFileCollection to handle several files.
Read more >File Upload via Swagger
NET Core Web API” by Talking Dotnet (link, 2017) on this topic. ... Swashbuckle automatically supports the IFormFile data type in the user ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I compared this template with AspNet Zero and this seems like it might create a difference and trying it solved the problem 😄
@vdurante thanks a lot for your detailed explanation, I will check it.