code property
[Internet Explorer 10. This object was supported in pre-release versions of Internet Explorer 10. As of Internet Explorer 10, it is obsolete and DOMError should be used instead. Applications using this object should be updated accordingly.]
Returns a file error code.
This property is read-only.
Syntax
| JavaScript |
|---|
errorCode = object.code |
Property values
Type: Number
Returns a file error code as shown in the Remarks section.
Remarks
The code property returns one of the following file error codes.
| Constant | Code | Description |
|---|---|---|
| NOT_FOUND_ERR | 8 | The File or Blob could not be found at the time the read was processed. |
| SECURITY_ERR | 18 | A file error not covered by the other file error codes occurred, such as: |
| ABORT_ERR | 20 | The read operation was aborted, typically with a call to abort. |
| NOT_READABLE_ERR | 4 | The File or Blob cannot be read, typically due to permission problems that occur after a reference to a File or Blob has been acquired (that is, concurrent lock with another application). |
| ENCODING_ERR | 5 | The length of the data URL for a File or Blob is too long. |
The above error codes have been replaced with the following error strings.
NotFoundErrorSecurityErrorAbortErrorNotReadableErrorEncodingError
See FileError for a code example using these standards compliant error strings.
See also
Show: