Find out if a user can select more than one file with the file upload button:
The result of x will be:
The multiple property sets or returns whether more than one file can be selected with the file upload button.
When set to true, it specifies that the user is allowed to select more than one file.
This property reflects the HTML multiple attribute.
Tip: To select multiple files, hold down the CTRL or SHIFT key while selecting.
The multiple property is supported in all major browsers, except Internet Explorer 9 and earlier versions.
Return the multiple property:
Set the multiple property:
Specifies whether more than one file can be selected with the file
|Return Value:||A Boolean, returns true if more than one file can be selected with the file upload button, otherwise it returns false|
Allow the user to select multiple files:
HTML reference: HTML <input> multiple attribute