Use the multiple attribute in HTML to specify a user can enter more than one value.
Example
You can try to run the following code to implement multiple attribute −
<!DOCTYPE html> <html> <head> <title>Upload multiple files</title> </head> <body> <form> <input type = "file" name = "name" multiple><br><br> After uploading multiple files, click Submit.<br> <input type = "submit" value = "Submit"> </form> </body> </html>