Back to Content

FileReader: abort() method

files/en-us/web/api/filereader/abort/index.md

latest453 B
Original Source

{{APIRef("File API")}}{{AvailableInWorkers}}

The abort() method of the {{domxref("FileReader")}} interface aborts the read operation. Upon return, the {{domxref("FileReader.readyState","readyState")}} will be DONE.

Syntax

js-nolint
abort()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("FileReader")}}