uptick / react-keyed-file-browser

Folder based file browser given a flat keyed list of objects, powered by React.
MIT License
298 stars 144 forks source link

Disable Multiple File Selections #154

Closed derekzernach closed 3 years ago

derekzernach commented 3 years ago

I have a use case where I don't want multiple file selections turned on because moving files causes issues with what we're doing with the files. Is there an option for that or a way to see all the files that are currently selected?

The problem i have is when i move multiple files, the callback onMoveFile gets called for every file instead of passing an array of files that will be moved. This is causing downstream issues with how fast it's happening.

derekzernach commented 3 years ago

Got around this by using a reference to FileBrowser and was able to get the list of current selected files that it keeps in its state