# system.file.saveFile not available

**URL:** <https://forum.inductiveautomation.com/t/system-file-savefile-not-available/42616>\
**Category:** Ignition\
**Tags:** perspective, ignition80\
**Created:** [January 26, 2021, 3:58pm UTC](https://forum.inductiveautomation.com/t/system-file-savefile-not-available/42616 "2021-01-26T15:58:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [January 26, 2021, 3:58pm UTC](https://forum.inductiveautomation.com/t/system-file-savefile-not-available/42616/1 "2021-01-26T15:58:46Z")

</div>

Hi, I’ve noticed that system.file.saveFile isn’t available on perspective.  
Is this a bug?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 26, 2021, 4:03pm UTC](https://forum.inductiveautomation.com/t/system-file-savefile-not-available/42616/2 "2021-01-26T16:03:09Z")

</div>

The [scope](https://docs.inductiveautomation.com/display/DOC81/system.file.saveFile) of `system.file.saveFile` is Vision, which means that it is not available to Perspective. This is because the Vision usage of `saveFile` saves a file to the local system. The Perspective Session does not have the file in use locally (everything is on the Gateway and just displayed locally). You would need to download the file in use. If you can clarify the use-case I could probably walk you through how to implement it. You should look at [system.perspective.download()](https://docs.inductiveautomation.com/display/DOC81/system.perspective.download)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 26, 2021, 4:53pm UTC](https://forum.inductiveautomation.com/t/system-file-savefile-not-available/42616/3 "2021-01-26T16:53:31Z")

</div>

Pedantic note - despite the name, `saveFile` doesn’t actually save a file at all (something that’s impossible for webpages to do due to browser security) - instead it opens a local file picker (also impossible in browsers) allowing you to choose a location _to_ save a file, which you would then (in Vision) pass to `system.file.writeFile` or a similar function.

Browsers don’t allow you to do things with arbitrary filesystem locations - only initiate a download with the user - which, per their browser sessions, may automatically download, or prompt the user to confirm, or go to a specific location, or any number of other things.
