DocumentUploader
Drag-and-drop upload zone with per-file progress, size/count validation, and controlled file list — so the consumer can drive uploads against S3, R2, or anything else.
Source
src/components/ai/document-uploader.tsxMixed statuses (ready / uploading / error)
Pass a controlled files list with per-file status. Upload progress, success checkmark, and error banner all render from that data.
Drop files or click to browse
- engineering-handbook-v3.pdf2.3 MB
- q1-board-deck.pdf8.5 MB
- customer-interviews.docx500.0 KBVirus scan failed — try a different file
- embeddings-schema.json4.7 KB
Empty zone
Without files, the zone expands and surfaces the accepted-types and size/count constraints.
Drop files or click to browse
images, PDF · up to 10.0 MB · max 5 files