# ConversationAttachmentError (@salmonui/chat/conversation)

> The ConversationAttachmentError interface of @salmonui/chat/conversation: A rejected file (too large, too many, wrong type) or a failed upload.

Canonical: https://salmonui.dev/docs/reference/chat/conversation/ConversationAttachmentError

```ts
import type { ConversationAttachmentError } from '@salmonui/chat/conversation';
```

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

## Reference

Kind: interface

```ts
interface ConversationAttachmentError {
    readonly file: File;
    readonly reason: 'size' | 'count' | 'type' | 'upload';
    readonly error?: unknown;
}
```

A rejected file (too large, too many, wrong type) or a failed upload.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `file` | `readonly file: File;` |  |  |
| `reason` | `readonly reason: 'size' \| 'count' \| 'type' \| 'upload';` |  |  |
| `error` | `readonly error?: unknown;` | optional |  |
