uploadcn

Global Upload Provider

Component

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>
  );
}

Dependencies

More by uploadcn

View all
  • Progress Ring Upload

    Progress Ring Upload

    8
  • Avatar Upload

    Avatar Upload

    5
  • Chat Attachments

    Chat Attachments

    2
  • Identity Verification

    Identity Verification

    1
  • Cloud Dropzone

    Cloud Dropzone

  • Image Cropper

    Image Cropper

  • Liquid Dropzone

    Liquid Dropzone

  • Morphing Upload Button

    Morphing Upload Button