Sometimes, we want to select multiple files with file input in HTML.
In this article, we’ll look at how to select multiple files with file input in HTML.
How to select multiple files with file input in HTML?
To select multiple files with file input in HTML, we add the multiple
attribute.
For instance, we write
<input type="file" name="fileField" multiple="multiple">
to add the multiple
attribute to the file input and set it to multiple
to enable multi-file upload.
Conclusion
To select multiple files with file input in HTML, we add the multiple
attribute.