Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM FileUpload name property

FileUpload name property

Fileupload Object Reference Fileupload object


Definition and Usage

The name property can set or return the value of the name attribute of the FileUpload object.

The name attribute is used to send data to the server after form submission, or to reference form data in JavaScript.

Note: After form submission, only the name attribute of form elements is used to pass data values.

Syntax

Set the name attribute:

fileuploadObject.name="

name

"

Return the name attribute:

fileuploadObject.name


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the name property.


Example

Example

Display the value of the name attribute of the input element:

Runoob Tutorial(runoob.com)

Select a file to upload:

Try it »


Fileupload Object Reference Fileupload object