How to open files from the user's local device? #959
Unanswered
lilDuckuling
asked this question in
Q&A
Replies: 1 comment 7 replies
-
|
It sounds to me that you are using an obsolete version of ElectronNET. Please migrate to ElectronNET.Core. There is no support for the outdated packages. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a serverside Blazor App and "electronized" it by following the instructions in the read me. One of the requirements for this app is to read/write/open files on the user's local device. I tried doing this first by simply using the c# System.IO File and Directory classes. Then i tried using Electron.Shell API.
Since it's a blazor serverside app, the code is executed on the server/host, meaning, when i run either of these methods (on a client device), the file gets opened on the host's device, not on the client's device.
So is there a way to actually access the client's file system and read/write/open files on their local harddrive using electron? Also i know there are File System APIs for WebApps, but those are very restricted (due to security reasons) and don't work on every browser, so that's not an option for me.
Any help would be appreciated🙏
Additional Info:
packages installed: ElectronNET.Core (0.2.0) and ElectronNET.Core.AspNet (0.2.0)
I use a serverside Blazor app, NOT Blazor Webassembly
Beta Was this translation helpful? Give feedback.
All reactions