The Upload component allows users to upload a file manually or using drag and drop.
View source codeReactNodeThe contents of the Upload on drag
ReactNodeThe contents of the Upload
(files: File[], uploadType: UploadType) => void | Promise<void>Handler that is called when a file is submitted
stringOne 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:stringclassName for the element
ReactNodeIllustration to use instead of the default icon
booleanWhether the Upload is invalid.
Default: falsebooleanWhether the input should allow multiple file
Default: false