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

HTML DOM Fileupload value property

FileUpload value property

Fileupload Object Reference Fileupload object


Definition and Usage

The value property returns the file path and name selected by the element.

In IE, Google Chrome, Opera, Firefox, and Safari browsers, the value property returns a fake path name of the selected file.

Note: For security reasons, this property is read-only.

Syntax

fileuploadObject.value


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the value property.


Example

Example

Display the name of the selected file:

Runoob Tutorial(runoob.com)

Select a file to upload:

Try it »


Fileupload Object Reference Fileupload object