FileReader.abort()

The abort method aborts the read operation. Upon return, the readyState will be DONE.

Syntax

instanceOfFileReader.abort();

Exceptions

DOM_FILE_ABORT_ERR
Thrown when abort is called while no read operation is in progress (that is, the state isn't LOADING).

Specifications

Specification Status Comment
File API
The definition of 'abort()' in that specification.
Working Draft Initial definition

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
abortChrome Full support 7Edge Full support 12Firefox Full support 3.6IE Full support 10Opera Full support 11Safari Full support 6WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 32Opera Android Full support 11Safari iOS Full support 6.1Samsung Internet Android Full support Yes

Legend

Full support
Full support

See also