The multiple attribute is a boolean attribute. When present, it specifies that the user is allowed to enter more than one value in the <input> element. This attribute works with the following input types: email, and file. This example shows a file upload field that accepts multiple values:
HTML file: | Displayed by browser: |
---|---|
<p>Select images: <input type="file" name="img" multiple></p> |
Select images: |
This should work with all major browsers.