---
title: FileReader.onabort
slug: Web/API/FileReader/onabort
tags:
  - Event Handler
  - File
  - FileReader
  - Property
  - Reference
browser-compat: api.FileReader.onabort
---
The **`FileReader.onabort`** property contains an event handler executed when the [`abort`](/en-US/docs/Web/API/HTMLMediaElement/abort_event) event is fired, i.e. when the process of reading the file is aborted.

## Syntax

```js
reader.onabort = function() { ... };
```

## Browser compatibility

{{Compat}}
