Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProBefore uploading, files that match one already in the list (same name and size, optionally same content hash) are flagged and the person chooses Skip or Keep both for each, with "apply to all". Use this when people re-add the same file by accident.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Uploads accumulate over sessions and the same file is easy to add twice.
Do not use it when: If the server already dedupes by content hash, tell the person the file exists instead of asking.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Description |
|---|---|---|
onChange | (files: File[]) => void | The files that will be uploaded. |
hashFile(file) is exported (SHA-256 hex, or null where SubtleCrypto is unavailable).
The pattern ships with a Testing Library test (upload-duplicate-detection.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.