Retrieve monitor.getItem().files in canDrop function?
cheemeng opened this issue · comments
Chee Meng commented
Hi,
I'd like to ensure that:
- Only 1 file is dragged over, and
- The file type matches my list of allowed files.
However when I try to retrieve the value of files in the canDrop function, it returns a Browser doesn't allow reading "files" until the drop event.
Are there ways to work around this? Thanks!
dan commented
Unfortunately not, precisely because
Browser doesn't allow reading "files" until the drop event.
😉