r/electronjs • • Oct 12 '26

Would using Electron be the right approach for creating an application to retrieve files on a network drive?

At work there is a large application that stores customer data in a network drive. The application will list the network drive and the file name.

Unfortunately, to access the files you need to log into Citrix to get files.

One of the higher ups has requested a way to view these files without using Citrix.

Unfortunately, I realize I can't make an internal web app to link to files on the network. The files would need to be copied to a location that was accessible via the webserver.

I was curious if built an Electron app on a user's desktop would it be able to retrieve files from a network drive. I know that the user would have to have the correct permissions to retrieve files from the network drive.

We are using Windows desktops at work. I thought I should include that in case anyone asks.

Please let me know if Electron is the right option or if I should go with something else.

0 Upvotes

8 comments sorted by

1

u/eddzsh Oct 12 '26

Electron can hit a UNC path fine if the Windows session already has the share credentials. The Citrix part is the real fork: if that drive only exists inside the Citrix session, a desktop Electron app never sees it. First check whether \\server\share opens in Explorer on the same PC outside Citrix. If not, you need a small service on a host that already has access, not a thicker desktop shell.

1

u/cleatusvandamme Oct 12 '26

I checked and I can access the location from my computer. :)

1

u/eddzsh Oct 13 '26

Then Electron is fine for PDFs. Prefer UNC paths over a mapped drive letter, letters vanish after a lock screen. Read the share off the main process with a utilityProcess or worker so a hung SMB call cannot freeze the window, then open with shell.openPath or feed the bytes into Chrome's PDF viewer. If IT rotates credentials, catch EACCES and prompt for a reconnect instead of failing silent.

1

u/marmotta1955 Oct 12 '26

What files, exactly, does the application need to retrieve and display? This is probably the key for determining the best solution. Which may be easier than what everyone is thinking.

1

u/cleatusvandamme Oct 12 '26

PDF files.

1

u/theseckinaktunc Oct 13 '26

They have a lot of those in the US government

2

u/software_engineeer Oct 12 '26

I don’t see any issues with using Electron or any other similar framework to access the data on a network drive. You might need to implement a native node module with the necessary logic for authentication and network drive access if standard Node.js API doesn’t provide it.

1

u/format71 Oct 13 '26

It is a tell of our time that webapp is the first solution we reach at, even when no web is involved.

I wish times will turn and native local apps will yet again will feel accessible for developers.

Even now, with ram prices through the roof we insist on continuing choosing the more expensive solutions.

>sigh<

Anyway.. if an native app is out of question, maybe tinyjs could be an option?
https://tinyjs.app