Categories
HTML

How to select multiple files with file input with HTML?

Spread the love

To select multiple files with file input with HTML, we add the multiple attribute to the file input.

For instance, we write

<input type="file" name="filefield" multiple="multiple" />

to add the multiple attribute to the file input to let us select multiple files from the file selection dialog.

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 *