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 APIThe definition of 'FileReader: error' in that specification. | Working Draft | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
error
|
Chrome
Full support 7 |
Edge
Full support 12 |
Firefox Full support 3.6 Full support 3.6 Notes' Prior to Firefox 13, the |
IE Full support 10 Full support 10 Notes' The |
Opera
Full support 11 |
Safari Full support 6 Full support 6 Notes' The |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android Full support 32 Full support 32 Notes' From Firefox 32 to Firefox 58, the |
Opera Android
Full support 11 |
Safari iOS Full support 6.1 Full support 6.1 Notes' The |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- See implementation notes.'
- See implementation notes.
See also
FileReader.error by Mozilla Contributors is licensed under CC-BY-SA 2.5.