styleguide icon indicating copy to clipboard operation
styleguide copied to clipboard

Not passing all possible props to ReactDropzone

Open estacioneto opened this issue 4 years ago • 4 comments

Describe the bug

That's it. I cannot be able to pass, for example, minSize and maxSize to the ReactDropzone via Styleguide.

To Reproduce

Try to use any of the ReactDropzone validations

Expected behavior

Validate minSize, maxSize and others.

Screenshots

Styleguide

image

Dropzone

image

estacioneto avatar Mar 24 '20 15:03 estacioneto

When @kevinch created this component, it was just to meet the need in that context. I already needed some features that I don't have either:

  • a list of file types that are supported
  • max file size
  • event for when the file is removed

which are you currently needing @estacioneto?

emersonlaurentino avatar Apr 16 '20 16:04 emersonlaurentino

There is an event for when the file is removed 🤔 (onFileReset). Anyway, I need a max file size verification (also the type checking would be great).

estacioneto avatar Apr 16 '20 16:04 estacioneto

I said wrong, sorry. I meant that I need an event to remove the files. Because currently it is only possible to remove files if you click the button.

emersonlaurentino avatar Apr 16 '20 17:04 emersonlaurentino

It would be possible if the file list was handled outside the component. And it would be great, actually 😅

estacioneto avatar Apr 16 '20 18:04 estacioneto