# How to Access network drive folder in perspective

**URL:** <https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487>\
**Category:** Ignition\
**Created:** [October 29, 2021, 8:32am UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487 "2021-10-29T08:32:45Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [October 29, 2021, 8:32am UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/1 "2021-10-29T08:32:45Z")

</div>

Hi,  
I have an image mounted on network drive “L”.  
using webDev module I am trying to access that folder, Throught system.file.fileExists I am checking Is that folder is exist or not but it is not working.  
How we can access the network folder in perspective?  
I am trying in script console Like this,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/f/eff1bd6aa060f34af2b3cdbd9c00db4decde5c18.png)

and below is the webdev module mounted path of network drive,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/e/ee18f86504bd0f02165e9c36fea59f4585c343d6.png)

Please help me with this.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [November 1, 2021, 8:06am UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/2 "2021-11-01T08:06:47Z")

</div>

Hi guys,  
Anyone have any idea about this?  
I have tried with server name instead of “L:”, Still it is not working.  
I can easily access C drive folder only problem with network drive.  
What’s wrong here?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/c/7c9716d874efa07cd23d478b1da2c581528094ec.png)

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [November 1, 2021, 8:09am UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/3 "2021-11-01T08:09:39Z")

</div>

How about a httpClient request instead

---

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [November 1, 2021, 8:26am UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/4 "2021-11-01T08:26:18Z")

</div>

How we can do this using httpClient, I dont have any idea, Can you please guide?

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [November 1, 2021, 8:39am UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/5 "2021-11-01T08:39:00Z")

</div>

Maybe this may help meanwhile [system.net.httpClient - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)](https://docs.inductiveautomation.com/display/DOC81/system.net.httpClient).  
or if you a java fan [html - how to download image from any web page in java - Stack Overflow](https://stackoverflow.com/questions/5882005/how-to-download-image-from-any-web-page-in-java)

The idea would be to download the image and store locally. I will return tomorrow.

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [November 1, 2021, 12:10pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/6 "2021-11-01T12:10:37Z")

</div>

Back up to what you are trying to do… Are you trying to access a file in a client (httpClient) or serve the files to external clients (WebDev)?

---

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [November 1, 2021, 12:17pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/7 "2021-11-01T12:17:12Z")

</div>

I want to access image from network drive ‘L:’  
I have web dev module through that I am trying to access.  
Usually If we want to access files from server we use webdev module right?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/1/f1b9f38073d479b0385d9975cd545dfc4095747d.png)

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [November 1, 2021, 12:41pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/8 "2021-11-01T12:41:48Z")

</div>

The **context** of WebDev is completely on the gateway. It only has access to resources and drives that your gateway does. You would not do the mapping locally on your PC. If you want to access a mapped drive or a UNC path, you need to be running the Ignition service on your gateway under a specific account and grant that account permissions to the resources it is trying to access.

---

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [November 1, 2021, 1:03pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/9 "2021-11-01T13:03:30Z")

</div>

I have access to network drive.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [November 1, 2021, 6:23pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/10 "2021-11-01T18:23:10Z")

</div>

It seems like a bug to me.  
In my testing I was able to read the remote file resource. But it is not working for remote mounted folders.

---

<div class="post-metadata">

**Author:** ![swolnisty](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@swolnisty](https://forum.inductiveautomation.com/u/swolnisty)\
**Post date:** [November 1, 2021, 8:03pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/11 "2021-11-01T20:03:04Z")

</div>

I have done something similar to this, though I would caution that I was told the method I used is not officially supported by Inductive Automation and there’s no guarantee that this would work in future versions of the software.

You can reference directories and files contained within the /webserver/webapps/main directory of your Ignition install directly from a web browser by simply appending the file name to the address of your Ignition gateway. For example, if you placed an mp3 file named ‘test\_sound’, you would be able to hear the mp3 by pasting ‘localhost:8088/test\_sound.mp3’ into a web browser on the machine where your Ignition gateway is installed. In order to map files from a network drive here, I would suggest creating a symbolic link to the directory in the network drive in that location. That way, since this is an unsupported “feature” of Ignition, if the /webserver/webapps directory were ever to be overwritten (say, during the installation of a new version of Ignition) your actual data in the network drive would remain untouched and you would simply need to re-establish the symbolic link to the network directory in order to restore access to those files from within SCADA.

---

<div class="post-metadata">

**Author:** ![Noah\_Casey](https://avatars.discourse-cdn.com/v4/letter/n/e480ec/32.png) [@Noah\_Casey](https://forum.inductiveautomation.com/u/Noah_Casey)\
**Post date:** [November 23, 2022, 7:34pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/12 "2022-11-23T19:34:35Z")

</div>

Was any solution every found for this? @Anita.Shinde

---

<div class="post-metadata">

**Author:** ![Anita.Shinde](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@Anita.Shinde](https://forum.inductiveautomation.com/u/Anita.Shinde)\
**Post date:** [November 30, 2022, 1:19pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/13 "2022-11-30T13:19:53Z")

</div>

Not Really. We have used another file path instead of network folder path.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [February 28, 2024, 6:09pm UTC](https://forum.inductiveautomation.com/t/how-to-access-network-drive-folder-in-perspective/52487/14 "2024-02-28T18:09:40Z")

</div>

are you still not using a network folder path?
