ElectronNET / ElectronNET/Electron.NET

Support for File Drop

Open
#1,002 0 comments 1 reaction 0 assignees View on GitHub
Feature
Dominant language
C#
Stars
7.6k
Forks
741
Avg merge
3h 50m
Merged PRs (30d)
2

Description

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)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.