W3cubDocs

/Web APIs

FileReader: error property

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

Value

A DOMException containing the relevant error.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
error 6 12
3.6["Before 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."]
10The error property returns a DOMError object.
11
6The error property returns a DOMError object.
3 18
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
6The error property returns a DOMError object.
1.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error