question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File Drag & Drop Support?

See original GitHub issue

I 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:open
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
zxeycommented, Oct 15, 2019

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.

0reactions
PfisterFactorcommented, Feb 27, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found