webview icon indicating copy to clipboard operation
webview copied to clipboard

Feature request: provide callbacks for drag and drop

Open roperzh opened this issue 7 years ago • 3 comments

Hello,

First of all, thanks for the great job 🤗!

I know this can be partially done using JavaScript, but due to browser security limitations is not possible to get the full path of the file being dropped. Could be possible to get this information via the native interface?

roperzh avatar May 14 '18 15:05 roperzh

This is definitely possible to do at the native level. I know there are plans for version 1.0 that would allow someone to pass their own native window to webview for it to attach to. This means you could set up drag-and-drop on your window and pass it along to webview for it to attach to.

jslegendre avatar Aug 07 '18 05:08 jslegendre

Does anyone have a workaround to pass a path to the backend via drag&drop of the file?

annikovk avatar Feb 10 '22 11:02 annikovk

Is there a way to do the same that was done for electron here?

beatscode avatar May 22 '22 13:05 beatscode