Summary

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' in that specification.
Working Draft Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support7 Yes3.61 2 31051165
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? Yes Yes323 4116.15 ?

1. Prior to Firefox 13, the error property returned a FileError object.

2. From Firefox 13 to Firefox 58, the error property returned a DOMError object.

3. From Firefox 58, the error property returns a DOMException object.

4. From Firefox 32 to Firefox 58, the error property returned a DOMError object.

5. The error property returns a DOMError object.

See also

Document Tags and Contributors

Contributors to this page: fscholz, chrisdavidmills, erikadoyle, flimzy, Sebastianz, teoli, Jeremie
Last updated by: fscholz,