If you want to allow a user to upload the file to your website, you need to use a file upload box, also known as a file select box. This is created using the <input> element and the type attribute is set to file.
To allow multiple file uploads in HTML forms, use the multiple attributes. The multiple attributes work with email and file input types.
You can try to run the following code to upload multiple files −
<!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>