Upload

The Upload component allows users to upload a file manually or using drag and drop.

View source code
  • activeDragContent
    ReactChild

    The contents of the Upload on drag

  • content
    ReactChild

    The contents of the Upload

  • onUpload
    (files: File[], uploadType: UploadType) => void | Promise<void>

    Handler that is called when a file is submitted

  • accept
    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:
  • className
    string

    className for the element

  • illustration
    ReactChild

    Illustration to use instead of the default icon

  • isInvalid
    boolean

    Whether the Upload is invalid.

    Default: false
  • multiple
    boolean

    Whether the input should allow multiple file

    Default: false