Skip to main content

FileDropzoneState

The state used by FileDropzone which is available through useFileDropzoneContext.

disabled boolean

Whether the FileDropzone is disabled or not.

dragActive FileDropzoneDragActive | undefined

A value which is defined when a file is dragged over the FileDropzone and undefined otherwise.

FileDropzoneDragActive currently only contains a single property. hasRejectedFiles which is a boolean indicating if the files currently being dragged over the FileDropzone would be rejected. Not this does not supported by all browser.

hasTooManyFiles boolean

A boolean indicating if too many files are dragged over the FileDropzone.