File

This object contains attributes of a single file.

Properties

  • name: The name of the file. (DOMString)
  • fullPath: The full path of the file including the file name. (DOMString)
  • type: The mime type of the file. (DOMString)
  • lastModifiedDate: The last time the file was modified. (Date)
  • size: The size of the file in bytes. (long)

Details

The File object contains attributes of a single file. You can get an instance of a File object by calling the file method of a [FileEntry](../fileentry/fileentry.html) object.

Supported Platforms

  • Android
  • BlackBerry WebWorks (OS 5.0 and higher)
  • iOS
  • Windows Phone 7 and 8
  • Windows 8