JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

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"


Previous Home Next
FileUpload.type Book Index focus()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz