Categories
HTML

How to select multiple files with file input in HTML?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *