Properties
Optionalaccept
accept?: string
Optionalaction
action?: | string | (
(file: RcFile) => string)
| (
(file: RcFile) => PromiseLike<string>)
OptionalbeforeUpload
beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | PromiseLike<void> OptionalclassName
className?: string
OptionalcustomRequest
Optionaldata
OptionaldefaultFileList
Optionaldirectory
directory?: boolean
Optionaldisabled
disabled?: boolean
OptionalfileList
headers?: { [key: string]: string }
OptionaliconRender
Optionalid
id?: string
OptionalisImageUrl
OptionallistType
listType?: "picture" | "text" | "picture-card"
Optionallocale
locale?: {
downloadFile?: string;
previewFile?: string;
removeFile?: string;
uploadError?: string;
uploading?: string;
}
Optionalmethod
method?: "POST" | "PUT" | "PATCH" | "post" | "put" | "patch"
Optionalmultiple
multiple?: boolean
Optionalname
name?: string
OptionalonChange
onChange?: ( info: { event?: { percent: number }; file: UploadFile; fileList: UploadFile[]; },) => void OptionalonDownload
OptionalonPreview
OptionalonRemove
onRemove?: (file: UploadFile) => boolean | void | Promise<boolean | void> OptionalopenFileDialogOnClick
openFileDialogOnClick?: boolean
OptionalprefixCls
prefixCls?: string
OptionalpreviewFile
previewFile?: (file: File | Blob) => PromiseLike<string>
Optionalprogress
progress?: { className?: string; format?: (percent?: number, successPercent?: number) => ReactNode; gapDegree?: number; gapPosition?: "left" | "right" | "bottom" | "top"; prefixCls?: string; showInfo?: boolean; size?: "small" | "default"; status?: "normal" | "active" | "exception" | "success"; steps?: number; strokeColor?: | string | (
{ direction?: string | undefined; } & ({ [percentage: string]: string; } | { from: string; to: string; })
)
; strokeLinecap?: "butt" | "round" | "square"; strokeWidth?: number; style?: CSSProperties; success?: { percent?: number; progress?: number; strokeColor?: string }; successPercent?: number; trailColor?: string; width?: number;} Type declaration
OptionalclassName?: string
Optionalformat?: (percent?: number, successPercent?: number) => ReactNode
OptionalgapDegree?: number
OptionalgapPosition?: "left" | "right" | "bottom" | "top"
OptionalprefixCls?: string
OptionalshowInfo?: boolean
Optionalsize?: "small" | "default"
Optionalstatus?: "normal" | "active" | "exception" | "success"
Optionalsteps?: number
OptionalstrokeColor?:
| string
| (
{ direction?: string | undefined; } & ({ [percentage: string]: string; } | { from: string; to: string; })
)
OptionalstrokeLinecap?: "butt" | "round" | "square"
OptionalstrokeWidth?: number
Optionalsuccess?: { percent?: number; progress?: number; strokeColor?: string }
Optionalpercent?: number
Optionalprogress?: number
OptionalstrokeColor?: string
OptionalsuccessPercent?: number
OptionaltrailColor?: string
Optionalwidth?: number
OptionalshowUploadList
showUploadList?: | boolean | { downloadIcon?: ReactNode; removeIcon?: ReactNode; showDownloadIcon?: boolean; showPreviewIcon?: boolean; showRemoveIcon?: boolean; } Optionalstyle
OptionalsupportServerRender
supportServerRender?: boolean
transformFile?: ( file: RcFile,) => string | File | Blob | PromiseLike<string | File | Blob> Optionaltype
type?: "select" | "drag"
OptionalwithCredentials
withCredentials?: boolean
Public