Web/API/FileReader/abort

From Get docs


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 APIThe definition of 'abort()' in that specification. Working Draft Initial definition

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
abort Chrome

Full support 7

Edge

Full support 12

Firefox

Full support 3.6

IE

Full support 10

Opera

Full support 11

Safari

Full support 6

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 32

Opera Android

Full support 11

Safari iOS

Full support 6.1

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support


See also