Properties
Optional accept
accept?: string
Optional action
action?: string | ((file) => string) | ((file) => PromiseLike<string>)
Type declaration
- (file): string
Returns string
Type declaration
- (file): PromiseLike<string>
Returns PromiseLike<string>
Optional beforeUpload
beforeUpload?: ((file,
FileList) => BeforeUploadValueType | Promise<BeforeUploadValueType>) Type declaration
- (file, FileList): BeforeUploadValueType | Promise<BeforeUploadValueType>
Parameters
file: RcFile
FileList: RcFile[]
Returns BeforeUploadValueType | Promise<BeforeUploadValueType>
Optional capture
capture?: boolean | "environment" | "user"
Optional children
children?: ReactNode
Optional className
className?: string
Optional customRequest
customRequest?: ((options) => void)
Type declaration
- (options): void
Parameters
options: UploadRequestOption<any>
Returns void
Optional data
Optional defaultFileList
Optional directory
directory?: boolean
Optional disabled
disabled?: boolean
Optional fileList
Optional hasControlInside
hasControlInside?: boolean
Optional headers
headers?: HttpRequestHeader
Optional iconRender
iconRender?: ((file, listType?) => ReactNode)
Type declaration
- (file, listType?): ReactNode
Parameters
Optional listType: UploadListType
Returns ReactNode
Optional id
id?: string
Optional isImageUrl
isImageUrl?: ((file) => boolean)
Type declaration
- (file): boolean
Returns boolean
Optional itemRender
itemRender?: ItemRender<T> Optional listType
listType?: UploadListType
Optional locale
locale?: UploadLocale
Optional maxCount
maxCount?: number
Optional method
method?: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch"
Optional multiple
multiple?: boolean
Optional name
name?: string
Optional onChange
onChange?: ((info) => void)
Optional onDownload
onDownload?: ((file) => void)
Optional onDrop
onDrop?: ((event) => void)
Type declaration
- (event): void
Returns void
Optional onPreview
onPreview?: ((file) => void)
Optional onRemove
onRemove?: ((file) => boolean | void | Promise<boolean | void>) Type declaration
- (file): boolean | void | Promise<boolean | void>
Returns boolean | void | Promise<boolean | void>
Optional openFileDialogOnClick
openFileDialogOnClick?: boolean
Optional prefixCls
prefixCls?: string
Optional previewFile
previewFile?: PreviewFileHandler
Optional progress
progress?: UploadListProgressProps
Optional rootClassName
rootClassName?: string
Optional showUploadList
showUploadList?: boolean | ShowUploadListInterface<any>
Optional style
style?: CSSProperties
Optional supportServerRender
supportServerRender?: boolean
Optional transformFile
transformFile?: TransformFileHandler
Optional type
type?: UploadType
Optional withCredentials
withCredentials?: boolean
Config max count of
fileList. Will replace current one whenmaxCountis 1