# Import csv in perspective with file path?

**URL:** <https://forum.inductiveautomation.com/t/import-csv-in-perspective-with-file-path/70254>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 23, 2023, 11:07pm UTC](https://forum.inductiveautomation.com/t/import-csv-in-perspective-with-file-path/70254 "2023-02-23T23:07:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [February 23, 2023, 11:07pm UTC](https://forum.inductiveautomation.com/t/import-csv-in-perspective-with-file-path/70254/1 "2023-02-23T23:07:00Z")

</div>

So I know you can use the file upload component to import csvs and have that set up and working  
but that method we would need a person to manually put the csvs into the component.

What I am really looking for is for a way to put a filepath in the script and then it grabs the csv from that filepath from my mapped network drive of N:

is this possible in perspective? I was trying to use system.file.openfile but i couldnt get it to work

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 23, 2023, 11:18pm UTC](https://forum.inductiveautomation.com/t/import-csv-in-perspective-with-file-path/70254/2 "2023-02-23T23:18:50Z")

</div>

Not from the client side, no. A key point of browser security is to prevent that kind of information leak.

If the file can be reached via a UNC path from the gateway's background service, it could be scripted.

---

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [February 23, 2023, 11:28pm UTC](https://forum.inductiveautomation.com/t/import-csv-in-perspective-with-file-path/70254/3 "2023-02-23T23:28:18Z")

</div>

it should be able to access it since the gateway got mapped to that network I think?

maybe my issue is im using the other path type instead of unc

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 24, 2023, 12:05pm UTC](https://forum.inductiveautomation.com/t/import-csv-in-perspective-with-file-path/70254/4 "2023-02-24T12:05:29Z")

</div>

Did you follow the instructions for mapping a drive for the gateway to use? (A user mapping a drive on that server's desktop _ **doesn't** _ make that drive usable by the gateway.) If the gateway service is using a user account that has network privileges, UNC paths should work (no drive letter).
