Search for a command to run...
Drag-and-drop file uploads with per-user storage quotas and ownership-enforced access. Powered by UploadThing and React Dropzone.
Add these to your .env before installing. The CLI runs Prisma generate and migrate using these values during install — add them first, or the install will fail partway through.
DATABASE_URLrequiredPostgreSQL connection string.
e.g. postgresql://user:pass@localhost:5432/mydbUPLOADTHING_TOKENrequiredUploadThing API token from your dashboard.
e.g. sk_live_...UPLOAD_MAX_BYTES_PER_USERoptionalOptional per-user storage cap in bytes. Defaults to 100MB (104857600).
e.g. 104857600npx feature101@latest add uploadimport { FileUploader } from '@/features/upload'<FileUploader onUploadComplete={(file) => console.log(file)} />| Prop | Type | Default | Description |
|---|---|---|---|
maxFiles | number | 10 | Max files accepted per drop/select. |
className | string | — | Custom CSS classes for FileUploader. |
onUploadComplete | (file: FileAsset) => void | — | Callback fired with real server result once a file finishes uploading and is persisted. Never fires on optimistic add or rollback. |
emptyState | ReactNode | — | Custom subtext shown under the dropzone heading when the user has no files yet. |