Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProEach chosen file shows an editable name (the extension is locked), names are cleaned of unsafe characters, duplicates get a number, and the sanitised name is what gets uploaded. Use this when file names become part of URLs or records.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
File names are shown to others or used in links, and people should be able to fix them before they are saved.
Do not use it when: If you store files under generated ids, the original name only needs to be kept as metadata.
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 |
|---|---|---|
onSend | (files: { file, name }[]) => void | Promise<void> | The files with the names to save them under. |
sanitizeName, splitName and uniqueNames are exported; apply the same rules on the server.
The pattern ships with a Testing Library test (upload-rename-before-send.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.