Skip to content
providerkit
GitHub

AttachmentRef

Defined in: react/src/client.ts:46

A file the host already holds, sent with a message. Upload it first: the host gets this reference, never the bytes.

id: string;

Defined in: react/src/client.ts:48

The host’s own id for the file.


mediaType: string;

Defined in: react/src/client.ts:50


name: string;

Defined in: react/src/client.ts:49


optional size?: number;

Defined in: react/src/client.ts:52

Bytes.


optional url?: string;

Defined in: react/src/client.ts:54

Shown as the file’s link or preview until the host’s copy of the message arrives.