File Drag & Drop Support?
See original GitHub issueI am using this crate via neutrino for a Windows-specific desktop app and in need of file drag & drop support.
I don’t know much about WinAPI stuff, but looked some things up: can it be as easy as implementing UI_GetDropTarget()
function?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
File drag and drop - Web APIs | MDN
Note that HTML drag and drop defines two different APIs to support dragging and dropping files. One API is the DataTransfer interface and ......
Read more >Drag and Drop | Can I use... Support tables for HTML5, CSS3 ...
Drag and Drop ... Method of easily dragging and dropping elements on a page, requiring minimal JavaScript. Usage % of. all users, all...
Read more >File drag & drop in Link to Windows (pre-installed)
File drag & drop supports the transfer of all file types, except for folders and files backed up to the cloud. You can...
Read more >How To Make A Drag-and-Drop File Uploader With Vanilla ...
The first thing we need to discuss is the events related to drag-and-drop because they are the driving force behind this feature. In...
Read more >Drag and Drop File Uploading - CSS-Tricks
“Drag and drop files here!” [User drags and drops files]; “Oops just kidding drag and drop isn't supported.” The trick here is to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, it would definitely need to be implemented in all three platforms we support. I’ve considered that maybe we could switch to winit for windowing, so we do not have to maintain separate windowing code but even winit does not have drag & drop implemented (see rust-windowing/winit#720). It will probably be difficult to get right for all the platforms, but maybe we can start with Windows as a prototype first?
EDIT: Oh, it seems that winit has some basic drop file support.
My application needs to listen for file system events on the file dragged into the application, so direct access to the full path is needed. So I still think that this would be a useful feature to implement within Webview rather than just the JavaScript api. There might be some way to implement file system notifications within JavaScript, but it seems a hacky workaround.