Search WRM:

JavaScript FileReader Object: abort()

By: Dusty Arlia
Published on Monday, November 4, 2013, 07:46 AM
Last Updated on Saturday, July 11, 2015 at 7:11 PM
Total Updates: 2

The JavaScriptFileReaderobject has an abort()method included with it. Use this method to abort a read operation. This method sets the readyState to DONE, result to null, and error to a fileError object with a code of FileError.ABORT_ERR. Then finally, it fires an abort event and a loadend event. The abort event is triggered each time the reading operation is aborted.