Back to demos

File uploads with local Flydrive storage

This demo stores upload metadata in the demo_user_uploads table, stores bytes through Flydrive, and reads everything back through a TanStack API route. Treat it as starter-kit reference code, not a finished product flow.

Upload

Max 5 MB in this example.

Choose a small file to store through Flydrive.

Local root

Loading...

Stored files

Listed from the demo_user_uploads table.

No uploaded files yet.

Migration note

This example uses a local filesystem driver. To migrate to S3 or R2, swap the driver in src/integrations/storage.ts and keep storing database records by stable object key rather than by local path.