mother / react-files

A file input (dropzone) management component for React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

msucorey opened this issue · comments

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.

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.