# ConversationAttachment (@salmonui/chat/conversation)

> The ConversationAttachment interface of @salmonui/chat/conversation: A file attached to a message or pending in the composer.

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

```ts
import type { ConversationAttachment } 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 ConversationAttachment {
    readonly id: string;
    readonly name: string;
    readonly size?: number;
    readonly type?: string;
    readonly url?: string;
    readonly file?: File;
}
```

A file attached to a message or pending in the composer.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | Stable id (the upload transport's reference, or a generated id). |
| `name` | `readonly name: string;` |  |  |
| `size` | `readonly size?: number;` | optional | Size in bytes. |
| `type` | `readonly type?: string;` | optional | MIME type. |
| `url` | `readonly url?: string;` | optional | Where the stored file can be opened (from the `upload` transport). |
| `file` | `readonly file?: File;` | optional | The picked file, when no `upload` transport stored it. |
