Using the input tag to upload multiple files has become possible after the release of HTML 5. Since many of us, work on HTML and still use tags such as <input> tag for taking input from the user and <form> tag for using forms on our website, it is necessary to know how to implement multiple files feature using HTML. We can assign ‘multiple’ attribute with the value of multiple like below:
<input type="file" id="files" name="files" multiple="multiple">
<input type="file" id="files" name="files" multiple>
Note: We can use just multiple as a property. Well, it is very simple. HTML 5 has a property for input tag which is ‘multiple’.
Below example illustrates the above approach:
Example: Using this property, you can input multiple files. For selecting files, you must use either CTRL or SHIFT and select the number of files to be uploaded.