The Upload component allows users to upload a file manually or using drag and drop.
View source codeReactNode
The contents of the Upload on drag
ReactNode
The contents of the Upload
(files: File[], uploadType: UploadType) => void | Promise<void>
Handler that is called when a file is submitted
string
One or more unique file type specifiers describing file types to allow. Cf https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
Default:string
className for the element
ReactNode
Illustration to use instead of the default icon
boolean
Whether the Upload is invalid.
Default: falseboolean
Whether the input should allow multiple file
Default: false