jatui

FileDropzone

Multi-file / folder / ZIP drag-drop upload zone with thumbnail grid

Demo

Upload files

Drag and drop files, folders, or ZIP archives, or click to browse

Accepted: .png, .jpg, .webp, .pdf

Max size: 20 MB · Max files: 8

You can drop a folder or ZIP archive

Single-file, image only

Upload files

Drag and drop files, folders, or ZIP archives, or click to browse

Accepted: .png, .jpg, .webp

Max size: 5 MB · Max files: 1

You can drop a folder or ZIP archive

Props

PropTypeDefaultDescription
acceptstring[][]MIME types to accept (e.g. ["image/png"])
maxSizenumber50 MBMax file size in bytes
maxFilesnumber10Maximum files in the grid
multiplebooleanfalseAllow multi-file selection
uploadedFilesFileDropzoneFile[][]Already-uploaded files to show in the grid
uploadingbooleanfalseShow upload spinner
disabledbooleanfalseDisable interactions
onFilesAdded(files: FileDropzoneFile[]) => void-Called with new files when dropped or picked
onRemove(file: FileDropzoneFile) => void-Called when user removes a file from the grid

FileDropzoneFile type

interface FileDropzoneFile {
  file?: File;        // Raw File for pending uploads
  name: string;
  mimeType: string;
  size?: number;
  url?: string;       // For already-uploaded files
  meta?: Record<string, unknown>;
}