Pre-release component / File uploads
SuperUpload
Drag-and-drop file uploads with progress tracking, previews, and automatic chunking for large files. All configured via data-* attributes.
01Features
What makes it Super
Drag & drop zone
Visual drop zone with hover states. Supports nested content and custom drop indicators.
<div data-az-component="super-upload"
data-az-drop-zone="true"
data-az-drop-text="Drop files here"
data-az-drop-active-class="border-amber-500">
File validation
Validate file types, sizes, and dimensions before upload. Custom validation rules supported.
<input data-az-accept="image/*,application/pdf"
data-az-max-size="10MB"
data-az-max-files="5"
data-az-min-dimensions="800x600">
Image previews
Instant image previews with thumbnail generation. Video and PDF previews also supported.
<div data-az-preview="true"
data-az-preview-size="150"
data-az-preview-fit="cover"
data-az-preview-video="thumbnail">
Progress tracking
Per-file and total progress bars. Pause, resume, and cancel individual uploads.
<div data-az-progress="bar"
data-az-progress-total="true"
data-az-pausable="true"
data-az-cancelable="true">
Chunked uploads
Automatic chunking for large files. Resume interrupted uploads with chunk verification.
<div data-az-chunked="true"
data-az-chunk-size="5MB"
data-az-resumable="true"
data-az-concurrent-chunks="3">
Server integration
Designed to work with any backend, including signed URLs, presigned S3 uploads and custom headers.
<div data-az-upload-url="/api/upload"
data-az-signed-url="/api/sign-upload"
data-az-headers='{"X-CSRF": "token"}'
data-az-field-name="file">
02Usage
Complete example
A complete file upload component with drag-and-drop, validation, and chunked uploads.
<div
data-az-component="super-upload"
data-az-upload-url="/api/files"
data-az-drop-zone="true"
data-az-multiple="true"
data-az-accept="image/*,application/pdf"
data-az-max-size="50MB"
data-az-max-files="10"
data-az-chunked="true"
data-az-chunk-size="5MB"
data-az-preview="true"
data-az-progress="bar"
data-az-pausable="true"
class="border-2 border-dashed border-zinc-700 rounded-2xl p-12">
<div data-az-drop-text>
<p>Drag files here or click to browse</p>
<p class="text-sm text-zinc-500">Max 50MB per file, 10 files max</p>
</div>
<input type="file" data-az-input multiple hidden>
<div data-az-file-list>
<!-- File items rendered here -->
</div>
<template data-az-file-template>
<div data-az-file-item>
<img data-az-file-preview>
<span data-az-file-name></span>
<span data-az-file-size></span>
<progress data-az-file-progress></progress>
<button data-az-file-remove>Remove</button>
</div>
</template>
</div>
Ready for better file uploads?
SuperUpload is part of the AZ UI Kit, which is not yet published. Request a briefing to ask about early access.