Class: File

file-polyfill.File()

new File()

The File interface provides information about files and allows JavaScript in a web page to access their content.
Source:

Extends

  • module:file-polyfill~Blob

Members

(readonly) lastModified :function

Get the last modified date of the file as the number of milliseconds since the Unix epoch.
Type:
  • function
Source:

(readonly) name :function

Get the name of the file represented by a File object.
Type:
  • function
Source:

Methods

constructor(fileBits, fileName, options)

Constructs a new File object.
Parameters:
Name Type Description
fileBits object An iterable object that will be put inside the File.
fileName string A string representing the file name or the path to the file.
options object An options object containing optional attributes for the file.
Source:

A Node.js implementation of the WHATWG XMLHttpRequest Living Standard for non-browser environments.