# Passing data to perspective app from extrernal source

**URL:** <https://forum.inductiveautomation.com/t/passing-data-to-perspective-app-from-extrernal-source/79151>\
**Category:** Ignition\
**Tags:** vision, perspective\
**Created:** [September 14, 2023, 11:37am UTC](https://forum.inductiveautomation.com/t/passing-data-to-perspective-app-from-extrernal-source/79151 "2023-09-14T11:37:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSviga](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@MSviga](https://forum.inductiveautomation.com/u/MSviga)\
**Post date:** [September 14, 2023, 11:37am UTC](https://forum.inductiveautomation.com/t/passing-data-to-perspective-app-from-extrernal-source/79151/1 "2023-09-14T11:37:05Z")

</div>

There is an existing standalone python application that launches a Vision client instance of an application and passes some data via a couple csv files. (the standalone application will get ported to Ignition eventually but isnt a priority right now)

The issue arises when trying to port said Vision application to perspective. Since browsers cannot acces local file systems this method of passing data isnt viable. I could pass the data via the page link but that is less than ideal. Any suggestions?

I am thinking of using the WebDev module to create an API endpoint with the doPost method but dont know how I would make sure the data gets to the right session (since there are going to be upwards of 20 active sessions at a time)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 14, 2023, 12:06pm UTC](https://forum.inductiveautomation.com/t/passing-data-to-perspective-app-from-extrernal-source/79151/2 "2023-09-14T12:06:35Z")

</div>

Maybe the file upload component could be what you're looking for ?

[https://docs.inductiveautomation.com/display/DOC81/Perspective+-+File+Upload](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+File+Upload)

---

<div class="post-metadata">

**Author:** ![MSviga](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@MSviga](https://forum.inductiveautomation.com/u/MSviga)\
**Post date:** [September 18, 2023, 5:03am UTC](https://forum.inductiveautomation.com/t/passing-data-to-perspective-app-from-extrernal-source/79151/3 "2023-09-18T05:03:56Z")

</div>

Thanks for the suggestion, but that would require the user to manually select the file they want to upload. I want to read the files during application startup without user input.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 18, 2023, 6:18am UTC](https://forum.inductiveautomation.com/t/passing-data-to-perspective-app-from-extrernal-source/79151/4 "2023-09-18T06:18:11Z")

</div>

> [@MSviga](#):
>
> passes some data via a couple csv files

This data is user specific? Could it be stored in a database instead?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 18, 2023, 7:03am UTC](https://forum.inductiveautomation.com/t/passing-data-to-perspective-app-from-extrernal-source/79151/5 "2023-09-18T07:03:56Z")

</div>

Not gonna happen. A browser automatically accessing and reading files on the client's machine ? Imagine what that implies.

Anyway, I'd say relying on the user having a specific file with the right name at the right path is probably not the best idea.  
Mandatory upload at startup might be a solution ?

Otherwise, we'll need to know more about what the whole thing is about to be able to suggest proper alternatives.

---

<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:** [September 18, 2023, 11:38am UTC](https://forum.inductiveautomation.com/t/passing-data-to-perspective-app-from-extrernal-source/79151/6 "2023-09-18T11:38:36Z")

</div>

> [@MSviga](#):
>
> The issue arises when trying to port said Vision application to perspective.

Sounds like you cannot port this application. Consider deferring the Perspective port for a couple years and see what is possible.
