FileReader.error

The FileReader error property returns the error that occurred while reading the file.

Syntax

var error = instanceOfFileReader.error

Value

A DOMError containing the relevant error. In Chrome 48+/Firefox 58+ this property returns a DOMException because DOMError has been removed from the DOM standard.

Specifications

Specification Status Comment
File API
The definition of 'FileReader: error' in that specification.
Working Draft Initial definition

Browser compatibility

BCD tables only load in the browser

See also