# AttachmentFile

<!-- https://uncage.vercel.app/docs/api/react/type-aliases/attachmentfile/ -->

```ts
type AttachmentFile = Blob & object | RNFile & object;
```

Defined in: react/src/store.ts:192

A file to attach: a browser `File` (`Blob & { name }`), or in React Native a picked file reference
(e.g. an expo-image-picker / expo-document-picker asset mapped to `{ uri, name, type, size }`).
The reference is uploaded through `client.uploadAttachment`, which reads `uri` with the global
`fetch` (`file://` works; copy `content://` URIs to a file first). Without `size` the client-side
size check is skipped (the server still enforces it); an image's `uri` is its preview.
