# UploadHandler (@salmonui/rich-text)

> The UploadHandler type of @salmonui/rich-text.

Canonical: https://salmonui.dev/docs/reference/rich-text/UploadHandler

```ts
import type { UploadHandler } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: type

```ts
type UploadHandler = (file: File, context: {
    readonly signal: AbortSignal;
}) => Promise<UploadResult>;
```
