Phong Duong

🔎Search

Allow selecting multiple images with HTML

13-11-2020 | #html

When you use input element for selecting files, you can specify the file types and whether the user can select more than one file.

<input type="file" accept="image/*" multiple />

If the user clicks the input element, the dialog will only show the image files and the user can select one or multiple files.

Share: TwitterFacebookLinkedInHacker News