Upload
File upload component with drag-and-drop and file list management.
When to Use
- For file attachments in forms
- For image or document uploads
- When drag-and-drop upload is needed
Import
Examples
Basic
Drag and Drop
Picture Card
API
UploadProps
action—string | (file) => Promise<string>— Upload URLfileList—UploadFile[]— Managed file list (controlled)onChange—({ file, fileList }) => void— File status change handlermultiple—boolean— Allow multiple files (default:false)maxCount—number— Maximum number of filesbeforeUpload—(file) => boolean | Promise— Pre-upload validationcustomRequest—(options) => void— Custom upload implementationlistType—"text" | "picture" | "picture-card"— File list display styleaccept—string— Accepted file typesdisabled—boolean— Disable uploadshowUploadList—boolean— Show file list (default:true)directory—boolean— Upload entire directory
Upload.Dragger Props
Same as UploadProps, rendered as a drag-and-drop area.