You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome if we could pass "accept" to openFileSelector(), additionally to configuring it for the drop zone.
Use case: I have a drop zone for a whiteboard canvas, where users can drop audio and image files. I want the drop zone to accept file types of both categories, which is already possible with the current way "accept" works. Additionally, there is a side-navigation with different icon buttons to add items to the canvas, including one button for audio upload and another for image upload. For these buttons, I want to call openFileSelector() with the respective category of files (audio or image files respectively), so that it's already filtering the correct file types for the user in the file explorer.
I notice that right now the drop zone configuration applies to openFileSelector(), but I would like to be able to have it more granular there.
The text was updated successfully, but these errors were encountered:
Hey there, great work on this library!
It would be awesome if we could pass "accept" to openFileSelector(), additionally to configuring it for the drop zone.
Use case: I have a drop zone for a whiteboard canvas, where users can drop audio and image files. I want the drop zone to accept file types of both categories, which is already possible with the current way "accept" works. Additionally, there is a side-navigation with different icon buttons to add items to the canvas, including one button for audio upload and another for image upload. For these buttons, I want to call openFileSelector() with the respective category of files (audio or image files respectively), so that it's already filtering the correct file types for the user in the file explorer.
I notice that right now the drop zone configuration applies to openFileSelector(), but I would like to be able to have it more granular there.
The text was updated successfully, but these errors were encountered: