File Upload

Free + Pro

Drag & drop file upload with progress tracking and automatic image previews in the free tier, plus an enterprise Pro tier with direct cloud storage integration, duplicate detection, bulk operations, and comprehensive validation.

Unlock Advanced File Upload Features

Get access to powerful pro features that enhance your file upload component with advanced capabilities, premium styling options, and optimized performance.

  • Direct cloud integration: AWS S3, Cloudinary, Firebase
  • SHA-256 duplicate detection
  • Bulk operations with multi-select and grid view

Pro Features

Unlock advanced capabilities with the Pro version

Duplicate Detection

SHA-256 file hashing to catch duplicate uploads

Rich Previews

Image and video thumbnails with audio playback

Bulk Operations

Multi-select, bulk delete, and batch processing

Cloud Integration

Direct upload to AWS S3, Cloudinary, or Firebase

Image Resize

Canvas-based image downscaling before upload

Status & Progress Tracking

Six-state per-file tracking with progress, speed, and ETA readouts

Validation

MIME whitelist, size limits, and async custom validation

Enterprise Ready

Custom endpoints, auth headers, and file metadata

Installation

Install via CLI

npx @moontra/moonui-cli add file-upload

Usage

Basic Usage

Pro Required

Upload files

Drag & drop files here, or click to select

Max 5 files, 10 MB each

Pro Usage

PRO
Pro Required

Upload Files

Drag and drop files or click to select

Max 8 files50 MB per fileResumable

Examples

Basic Upload

Drag & drop or click to select, with simulated progress and per-file removal

Upload files

Drag & drop files here, or click to select

Max 5 files, 10 MB each

Image Upload with Preview

Image files render an automatic thumbnail preview after selection

Upload files

Drag & drop files here, or click to select

Max 4 files, 5 MB each

Multiple File Types

Accept several types at once and cap the total number of files

Upload files

Drag & drop files here, or click to select

Max 3 files, 10 MB each

Single File

Restrict selection to a single file with multiple={false} and maxFiles={1}

Upload files

Drag & drop files here, or click to select

Max 1 files, 2 MB each

Disabled

Non-interactive dropzone for read-only or gated states

Upload files

Drag & drop files here, or click to select

Max 5 files, 10 MB each

PRO
Pro Examples

Advanced Upload with Duplicate Detection

PRO

Enterprise upload with SHA-256 duplicate detection, rich previews, and per-file status tracking

Pro Required

Upload Files

Drag and drop files or click to select

Max 8 files50 MB per fileResumable

Image Gallery with Bulk Operations

PRO

Grid variant with multi-select, metadata, and bulk actions

Pro Required

Upload Files

Drag and drop files or click to select

Max 20 files20 MB per fileResumable

Document Upload with Validation

PRO

MIME whitelist plus an async custom validator for document types

Pro Required

Upload Files

Drag and drop files or click to select

Max 5 files10 MB per fileResumable

Progress Tracking

PRO

Per-file progress reporting via onProgress; speed and ETA are rendered on each file row. Without a serviceConfig the built-in transfer is a demo simulation — wire a cloud integration or onUpload for real uploads

Pro Required

Upload Files

Drag and drop files or click to select

Max 3 files500 MB per fileResumable

Enterprise Configuration

PRO

Custom upload endpoint with authentication headers

Pro Required

Upload Files

Drag and drop files or click to select

Max 10 files100 MB per fileResumable

Compact View

PRO

Space-efficient variant for forms and tight layouts

Pro Required

Upload Files

Drag and drop files or click to select

Max 3 files5 MB per fileResumable

AWS S3 Integration

PRO

Direct upload to Amazon S3 via the built-in serviceConfig integration

Pro Required

Upload Files

Drag and drop files or click to select

Max 10 files100 MB per fileResumable

Cloudinary Integration

PRO

Upload images to Cloudinary with client-side resize before transfer

Pro Required

Upload Files

Drag and drop files or click to select

Max 10 files20 MB per fileResumable

Firebase Storage Integration

PRO

Upload files to Firebase Storage using the built-in serviceConfig integration

Pro Required

Upload Files

Drag and drop files or click to select

Max 10 files50 MB per fileResumable