Basic Upload

Default file upload zone with no type restrictions.

Document Upload

Accept only PDF and Word documents.

Image Upload

Accept common image formats for profile photos.

Spreadsheet Upload

Import data from CSV or Excel files.

In a Form

File upload combined with other form inputs.

Media Upload

Upload audio and video media files.

Usage

// Basic upload<FileUpload label="Upload a file" />// Restrict file types<FileUpload label="Upload document" accept=".pdf,.doc,.docx" />// Image only<FileUpload label="Upload photo" accept=".png,.jpg,.jpeg,.webp" />

Props

PropTypeDefaultDescription
labeltext"Choose file"Label text shown in the dropzone
accepttext""Accepted file types (e.g. ".pdf,.doc")