This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Note: This feature is available in Web Workers.
The error read-only property of the FileReader interface returns the error that occurred while reading the file.
A DOMException containing the relevant error.
| Specification |
|---|
| File API> # dom-filereader-error> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
error |
6 | 12 | 3.6["Before Firefox 13, theerror 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."] |
11 | 6Theerror property returns a DOMError object. |
18 | 32["From Firefox 32 to Firefox 58, theerror property returned a DOMError object.", "From Firefox 58, the error property returns a DOMException object."] |
11 | 6Theerror property returns a DOMError object. |
1.0 | 3 | 6Theerror property returns a DOMError object. |
© 2005–2025 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