[Chapter 21] Reference: FileUpload.value
Author: David Flanagan
Date: Fri Aug 29 11:15:56 1997

#

| Chapter 21 JavaScript Reference |

# FileUpload.value Property

## Name

FileUpload.value Property---filename selected by the user

## Availability

Navigator 3.0

## Synopsis

    fileupload.value

## Description

`value` is a read-only string property of the FileUpload object. It specifies the filename entered by the user into the FileUpload object. The user may enter a filename either by typing it directly or by using the directory browser associated with the FileUpload object.

To prevent malicious programs from uploading arbitrary files from the client, this property may not be set by JavaScript code. Similarly, the `VALUE` attribute of the `<INPUT>` tag does not specify a default value for this property.

In Navigator 2.0, reading the `value` property will always return the empty string.

## See Also

"FileUpload"

FileUpload.type |  | focus()