item

item method

Returns a File object from a FileList object.

Internet Explorer 10

 

Syntax

var retVal = FileList.item(index);

Parameters

index [in]

Type: number

The index (starting from 0) of the File object in the FileList object to return.

retVal [out, retval]

Type: File

Remarks

The first File object in a FileList object called selectedFiles can be accessed by either of the following methods:

  • selectedFiles.item(0)
  • selectedFiles[0]

See also

FileList

 

 

Show:
© 2016 Microsoft