I can’t seem to find a way to support accepting a file drop on just my plugin UI. I would expect to be able to handle this via document.addEventListener("drop", () => {});
however it doesn’t appear to be called.
When I use the API figma.on("drop")
I can get file information however it seems to takeover all file drag and drop from Figma. So as a customer I can’t say drag an image file into my Figma document and then later drag another file into my plugin’s window seprately.
Perhaps I’m missing something. Perhaps this is not yet implemented. If not, are there plans to support this?
Thanks!