Retrieves the file name of the input object after the text is set by user input.
the file name.
Windows Internet Explorer 8 and later. When a file is selected by using the input type=file object, the value of the value property depends on the value of the "Include local directory path when uploading files to a server" security setting for the security zone used to display the Web page containing the input object.
The fully qualified filename of the selected file is returned only when this setting is enabled. When the setting is disabled, Internet Explorer 8 replaces the local drive and directory path with the string
C:\fakepath\ in order to prevent inappropriate information disclosure.
To illustrate, suppose you attempt to upload a file named
C:\users\contoso\documents\file.txt. When you do this, the value of the value property is set to
For more information regarding security zones, see About URL Security Zones.