This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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 cc-by-sa-small-wpd.svg: [abort Article]

  • Microsoft Developer Network: [abort Method Article]