abort
Summary
The abort method is used to aborts the read operation. Upon return, the dom/Element/readyState will be DONE.
Method of apis/file/FileReaderapis/file/FileReader
Syntax
FileReader.abort();
Return Value
No return value
Examples
var instanceOfFileReader = new FileReader();
// ...read the file...
instanceOfFileReader.abort();
Notes
The abort method is used to interrupt an asynchronous read operation that is in progress on an onloadend event, sets the state of the dom/Element/readyState property of the FileReader to DONE
, and sets result property to null
.
Related specifications
- W3C File API Specification
- Last Call Working Draft 12 September 2013
Attributions
Mozilla Developer Network : [abort Article]
Microsoft Developer Network: [abort Method Article]