Is it possible to drag a remote file out of Electron App onto the file system?

試著忘記壹切 提交于 2019-12-03 17:11:24

I haven't seen any examples of this sort of functionality – but it doesn't seem like it would be hard to cobble it together (famous last words...)

  1. You have your representations in the UI of the remote files and those are enabled to be "dragged" to the desktop.
  2. You catch the target destination when the user drags one of those representations
  3. You start a download of the associated file and save it to the target destination

At least that is how I would start to approach it. There are various electron related libs dealing with downloads (e.g. electron-dl). If you get this working, report back and share the details.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!