error property

The error that occurred while reading a File, Blob, or MSStream object.

This property is read-only.

Internet Explorer 10

Syntax

JavaScript
ptr = object.error

Property values

Type: DOMError

The error type (see table below).

Exceptions

Error codes map directly to W3C file errors, as described in the following table.

ExceptionCondition
NotFoundError

The resource (File, Blob, or MSStream) could not be found at the time the read was processed.

SecurityError

One of the following occurred:

  • The file resource being accessed is unsafe.
  • The file resource has changed since the user selected it.
  • Issues not covered by other error types.
NotReadableError

The resource could not be read. This may occur due to permission problems on the file.

EncodingError

The resource could not be encoded due to data URL length limitations.

Remarks

An error that occurs during a read operation fires the onerror event and passes the associated error to the error property.

This property is null unless there is an error.

See also

FileReader
msStreamReader

 

 

Show:
© 2014 Microsoft. All rights reserved.