HTML DOM Input FileUpload multiple Property Last Updated : 15 Jun, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report The Input FileUpload multiple Property in HTML DOM is used to set or return one or multiple files selected with the file upload button. It contains a Boolean value which is true when the user is allowed to select more than one file. This property is used to reflect the HTML multiple attributes. Syntax: It returns the Input FileUpload multiple properties.fileuploadObject.multipleIt is used to set the Input FileUpload multiple properties.fileuploadObject.multiple = true|false Property Values: true: It allows you to select more than one file with the file upload Button.False: It is the default value. It does not allow to a selection of more than one file with the FileUpload Button. Return Value: It returns a Boolean value that specifies whether the user is allowed to select multiple files or not with the File UpLoad Button. Example 1: In this example, we will use the Input FileUpload multiple Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input FileUpload multiple Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksforGeeks </h1> <h2> HTML DOM Input FileUpload multiple Property </h2> <input type="file" id="geeks" multiple> <br><br> <button onclick="myFunction()"> Click </button> <p id="GFG" style="Font-size:20px;"></p> <script> function myFunction() { let x = document.getElementById("geeks").multiple; document.getElementById("GFG").innerHTML = x; } </script> </body> </html> Output: Example 2: In this example, we will see the use of Input FileUpload multiple Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input FileUpload multiple Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksforGeeks </h1> <h2> HTML DOM Input FileUpload multiple Property </h2> <input type="file" id="geeks" multiple> <br><br> <button onclick="myFunction()"> Click </button> <p id="GFG" style="Font-size:20px;"></p> <script> function myFunction() { let x = document.getElementById("geeks").multiple = "false"; document.getElementById("GFG").innerHTML = "The value of the multiple attribute" + " was changed to " + x; } </script> </body> </html> Output: Supported Browsers: The browsers supported by HTML DOM Input FileUpload multiple Property are listed below: Google Chrome 1+Edge 12+Firefox 1+Safari 1+Opera 11+ Comment More infoAdvertise with us Next Article HTML | DOM Input FileUpload value Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML Web technologies HTML-DOM Similar Reads HTML | DOM Input FileUpload name Property The name property is used to set or return the value of the name attribute of a file upload button. The name attribute is used to identify form data after the submission to the server. Syntax: Return the name property:fileuploadObject.nameSet the name property:fileuploadObject.name=name Property Val 1 min read HTML | DOM Input FileUpload form Property The Input FileUpload form property in HTML DOM is used to return a reference to the form containing the file upload button. This is a read-only property and returns a form object on success. Syntax: fileuploadObject.form Return Values: It returns a string value which specify the reference of the for 1 min read HTML | DOM Input FileUpload type Property The Input FileUpload type Property is used in HTML DOM to return the type of form element the file upload button is. This property will always return "file" for a file upload button. Syntax: fileuploadObject.type Return Value: It returns a string value that represents the type of form element the fi 1 min read HTML | DOM Input FileUpload value Property The Input FileUpload value Property is used to returns the path or the name of the file selected with the element. This property is used to return the name of the selected file with a fake path in IE, Google Chrome, and Opera, and return the name of the selected file in Firefox and Safari. This prop 1 min read HTML | DOM Input FileUpload accept Property The DOM Input FileUpload accept Property in HTML DOM is used to set or return the value of the accept attribute of the file upload button. The accept attribute specifies the types of files which are acceptable by that the server. Syntax: Return the accept property:fileuploadObject.acceptSet the acce 2 min read HTML | DOM Input FileUpload required Property The Input FileUpload required Property is used to set or return whether a file in the file upload field must be selected/uploaded before submitting a form. This property reflects the HTML required attribute. Syntax: Return the required property:fileuploadObject.requiredSet the required property:file 2 min read Like