Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
webContents.startDrag() for dragging and dropping remote files out of Electron into local filesystem #11691
Hey guys! I love what you've done with Electron. Keep it up!
I'm building a remote file explorer in Electron. I would like to have the ability to drag files out of Electron into the Mac OS X Finder. This can be achieved using
Is there any way to implement this kind of remote file drag-drop behavior with Electron? I was thinking of listening to the 'drop' event, intercepting the path, and downloading the files to this path via Node.js code.
However, Electron never seems to call any event after the webContents.startDrag() file has been successfully moved. Any ideas?
This has been asked on StackOverflow as well with no solution as of today:
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
changed the title from
webContents.startDrag() for dragging remote files out of Electron
webContents.startDrag() for dragging and dropping remote files out of Electron into local filesystem
Jan 22, 2018
Thanks for reaching out!
Because we treat our issues list as the team's backlog, we close issues that are questions since they don't represent a task needing to be completed. For most questions about Electron there are a lot of options.
This is actually a feature request. I was asking it in a question format because I was also considering a workaround as a possibility, instead of modifying core Electron code to add this as a feature.
I'm sure a lot of developers will find this feature vital. If you could reopen this, that would be much appreciated.
referenced this issue
Jul 5, 2018
@carsonxu Unfortunately not. There is still no way to drag "theoretical" files out of Electron. They have to first exist on the filesystem as