W3cubDocs

/DOM

FileReader.error

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 compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 7 Yes 3.6
3.6
Prior to Firefox 13, the error property returned a FileError object.
From Firefox 13 to Firefox 58, the error property returned a DOMError object.
From Firefox 58, the error property returns a DOMException object.
10
10
The error property returns a DOMError object.
11 6
6
The error property returns a DOMError object.
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support ? Yes Yes 32
32
From Firefox 32 to Firefox 58, the error property returned a DOMError object.
From Firefox 58, the error property returns a DOMException object.
11 6.1
6.1
The error property returns a DOMError object.
?

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error