274
A batch upload where each failed file says exactly why, too large, wrong type or a dropped connection, next to the fix for it, and a retry picks up where the upload stopped.
akaupload·error·retry
Run this in any project set up for the shadcn CLI. It copies the Upload Failed source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/upload-failed.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { UploadFailed } from "@/components/upload-failed";
export default function Page() {
return <UploadFailed />;
}A free React component in the Empty & Error collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Upload Failed source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| files | UploadFailedFile[] | defaultFiles |
| destination | string | "Q3 site survey" |
| onRetry | (id: string) => void | — |
| onRetryAll | () => void | — |
| onRemove | (id: string) => void | — |
| onRemoveFailed | () => void | — |
| onReplace | (id: string, file: File) => void | — |
| className | string | — |