About
An app-wide upload provider that shows a drop-anywhere overlay and a background upload queue panel so uploads keep running while the user navigates.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Global Upload Provider to your project and fits it to your theme.
Code
How Global Upload Provider is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import {
GlobalDropzone,
UploadProvider,
UploadQueuePanel,
} from "@/components/ui/global-upload";
import { MousePointerClickIcon } from "lucide-react";
/**
* Put <UploadProvider> in your root layout. While this example is on
* screen, drag a file from your desktop anywhere over the page.
*/
export default function GlobalUploadDemo() {
return (
<UploadProvider persist guard={false}>
<div className="flex flex-col items-center gap-2 rounded-xl border border-dashed py-12 text-center text-sm text-muted-foreground">
<MousePointerClickIcon className="size-5" aria-hidden />
Drag files over any part of this page
</div>
<GlobalDropzone />
<UploadQueuePanel />
</UploadProvider>
);
}







