ElectronNET / ElectronNET/Electron.NET

Support for File Drop

未关闭
#1,002 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
Feature
主要语言
C#
星标
7.6k
派生
741
平均合并
3 小时 50 分钟
30 天内合并 PR
2

描述

The drag/drop events don't natively expose the file path on file drop. For that, you have to invoke the [`getPathForFile`](https://www.electronjs.org/docs/latest/api/web-utils#webutilsgetpathforfilefile) function provided by the `webUtils` module. Unfortunately, this is not exposed by default (even less so when context isolation is turned on). Is there a way to invoke that function with the current possibilities, ideally without adding a preload script? And if it's not possible, is there a way to use a preload script without having it exposed as a physical file (e.g., loading from manifest stream)?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。