Upload
Upload file by selecting or dragging.
#
When To Use- When you need to upload one or more files.
- When you need to show the process of uploading.
- When you need to upload files by dragging and dropping.
#
Examples#
Basic#
before select#
Multiple#
failed and success#
APIProperty | Description | Type | Default |
---|---|---|---|
disabled | boolean | ||
onSelect | (files: File[]) => Promise<any> | ||
onClear | (file: File) => void | ||
onBeforeSelect | () => Promise<boolean> | boolean | ||
buttonProps | ButtonProps | ||
texts | { uploadText?: string; uploadingText?: string; uploadedText?: string; failedText?: string; } |
This component is based on react-dropzone, please check it's documentation for more usage.