multiple property (input:file)
Sets or retrieves whether more than one file can be selected with the current input:file element.
Note: The multiple property is supported in Firefox from version 3.6.By default, the input:file element only supports single file selection, so only one file can be uploaded with one input:file control at a time. With the multiple property you can allow users to upload more than one file with one input:file control during a form submission. To select multiple files, hold down the CTRL or SHIFT key while selecting.
Sometimes the files selected with the input:file control need to be checked before submission. For that cases, you can use the value property. Not only the value property is suited to retrieve the selected files. With the files property, you can get a FileList collection that contains information about the selected files and provides access to their contents. Unfortunately the files property is not supported by all commonly used browsers.
You can find the related objects in the Supported by objects section below.
This property is read/write.
|HTML page for this property: MULTIPLE|
Boolean that indicates whether multiple selection is allowed.
One of the following values:
|Default. Multiple selection is disabled.|
|Multiple selection is enabled.|
Example HTML code 1:
This example illustrates the use of the MULTIPLE attribute:
Example HTML code 2:
This example illustrates the use of the multiple property:
Example HTML code 3:
User Contributed Comments