File input with "multiple" attribute doesn't upload newly added files after server returns error response
See original GitHub issueDescribe the bug Using a File Input with “multiple” attribute and custom uploader, as shown in the documentation.
If the server responds with an error when you select a file, then when you try to upload another file, it appears in the list, but the actual upload is not performed.
To Reproduce Steps to reproduce the behavior:
- Go to reproduction page
- Click on the file input and select one file. The “server” rejects the file and an error is shown as expected.
- Click on the
+ Add File
button and select another file. - The file appears in the list, but the actual upload is not performed.
- [Optional] Repeat step 3 and see the result as in the step 4.
Reproduction https://codepen.io/apotheosis91/pen/xxgGQKb
Expected behavior Newly added files after the server responds with an error should be uploaded.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
multiple file input html not working - Stack Overflow
If the user operates the same file input upload process a second time anything selected prior is discarded and only the most recent...
Read more ><input type="file"> - HTML: HyperText Markup Language | MDN
Once chosen, the files can be uploaded to a server using form ... When the multiple Boolean attribute is specified, the file input...
Read more >Fix "Unexpected field" Error From Multer - Maxim Orlov
The foremost cause for this error is when the name attribute of the file input doesn't match the argument passed to one of...
Read more >A strategy for handling multiple file uploads using JavaScript
The [mutiple] attribute. The first thing we need to make sure to do is set the mutiple attribute to the file input. ·...
Read more >ASP.NET Core Blazor file uploads - Microsoft Learn
File selection isn't cumulative when using an InputFile component or its underlying HTML <input type="file"> , so you can't add files to an ......
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
@vicenterusso thanks! That is very nice one.
@vicenterusso, Sure, here’s what I did:
FormulateDropzone.vue
component with the following content: (I also changed the default dropzone styles and markup, but I omit that part to make the code clearer)