uptick/react-keyed-file-browser

Disable Multiple File Selections

Closed this issue · 1 comments

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.

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