` element. In IE, Google Chrome, Opera, Firefox,"> ` element. In IE, Google Chrome, Opera, Firefox," />
Easy Tutorial
❮ Prop Style Fontvariant Event Onpause ❯

FileUpload value Attribute


Definition and Usage

The value attribute returns the file path and name selected by the <input type="file"> element.

In IE, Google Chrome, Opera, Firefox, and Safari, the value attribute returns a fake path name for the selected file.

Note: Due to security reasons, this attribute is read-only.

Syntax


Browser Support

All major browsers support the value attribute.


Example

Display the selected file name:


❮ Prop Style Fontvariant Event Onpause ❯