mother / react-files

A file input (dropzone) management component for React
MIT License
145 stars 35 forks source link

How to remove files from Files component state so as to not count against max count or file size limit? #40

Closed msucorey closed 1 year ago

msucorey commented 2 years ago

Unless I'm missing something, Files has no props to remove files internally. Code I see in the demo manages wrapper state (which is good enough for UI), but for Files to manage count and size, it should update internally. Otherwise, the wrapper will now need to keep track of count and size after a removal.

asabhaney commented 2 years ago

Thanks @msucorey, the state management aspect of this library is being simplified in version 3. Feel free to install 3.0.0-alpha.3 and check out #32 for the latest progress.