# File Hooks — BrandApp Playground

> File listing, uploads, folders, and storage usage as TanStack Query hooks.

- Canonical page: https://brandapp-playground.vercel.app/hooks/files
- Markdown: https://brandapp-playground.vercel.app/hooks/files.md
- SDK module: `@reopt-ai/brandapp-sdk/react/hooks`

## Hooks

- `useFiles(sdk, query?)` — paginated listing
- `useUploadFile(sdk)` — upload, invalidates the listing on success
- SDK 3.5 folder, update, and usage hooks

The demo includes a cache inspector so you can watch manual refetch and invalidation
affect the query state.

## Related

- [Files API](https://brandapp-playground.vercel.app/files.md)
- [File Browser](https://brandapp-playground.vercel.app/files/browser.md)
- [React Hooks Overview](https://brandapp-playground.vercel.app/hooks.md)

---

Index of every document: https://brandapp-playground.vercel.app/llms.txt
Single-file copy: https://brandapp-playground.vercel.app/llms-full.txt
HTTP API description: https://brandapp-playground.vercel.app/openapi.json
