Multiple file upload via UI
See original GitHub issueIs there a way to send multiple files in one request using:
app.UseSwaggerUi(typeof(Startup).GetTypeInfo().Assembly, settings =>{
settings.UseJsonEditor = true;
});
first of all it allows selection of only 1 file. And after that in file: NSwag.AspNet.Owin/SwaggerUi/swagger-ui.js it just doesn`t add files:
if (o.type === 'file') {
map[o.name] = o.files[0];
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (4 by maintainers)
Top Results From Across the Web
Multiple File Upload
Discover 2 Multiple File Upload designs on Dribbble. Your resource to discover and connect with designers worldwide.
Read more >Best way to ask users to upload multiple files
Another thing that might help, the system only takes 4 file types (pdf, jpeg, jpg, png).
Read more >How to Design the Multiple File Upload Feature of a Web App?
Here is a simple way to design the Multiple File Upload feature of a web application to upload large number and sizes of...
Read more >Multiple File Upload UI | Figma Community
Multiple file uploader with animation. Open in Figma. This is a Figma Community file. Community is a space for Figma users to share...
Read more >Multiple File Upload - Overview
Allow you to upload multiple files in one upload form or using drag and drop functionality.
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 Free
Top 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
This is actually a swagger-ui issue. Go vote for it by giving a thumbs up: https://github.com/swagger-api/swagger-ui/issues/4600
Hi @RicoSuter at this moment the swagger issue just fixed a few days ago.
I updated NSwag to 13.6.0. Now the generated swagger.json looks like:
This schema is the same as latest swagger client. However when I use the swagger ui to send request to the sever, I found that the request is like:
The request only sent string '[object file]" instead of the form data that I selected (also, content length is only 157).
Hence, any thoughts about it? Thanks!