• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. FileReader
  4. FileReader.abort()
  • Change language

Table of contents

  • Syntax
  • Specifications
  • Browser compatibility
  • See also

FileReader.abort()

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

Browser compatibility

BCD tables only load in the browser

See also

  • FileReader

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Feb 19, 2021, by MDN contributors

Change your language

Related Topics

  1. FileReader
  2. Constructor
    1. FileReader()
  3. Properties
    1. error
    2. onabort
    3. onload
    4. readyState
    5. result
  4. Methods
    1. abort()
    2. readAsArrayBuffer()
    3. readAsBinaryString()
    4. readAsDataURL()
    5. readAsText()
  5. Events
    1. abort
    2. error
    3. load
    4. loadend
    5. loadstart
    6. progress
  6. Inheritance:
    1. EventTarget
  7. Related pages for File API
    1. Blob
    2. File
    3. FileList
    4. FileReaderSync
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies