# Is it possible to open a file in Photoshop (UXP) using a local path that is not in the plugins directory?

**URL:** <https://forums.creativeclouddeveloper.com/t/is-it-possible-to-open-a-file-in-photoshop-uxp-using-a-local-path-that-is-not-in-the-plugins-directory/4391>\
**Category:** UXP Plugin API\
**Tags:** filesystem\
**Created:** [March 8, 2022, 10:43pm UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-to-open-a-file-in-photoshop-uxp-using-a-local-path-that-is-not-in-the-plugins-directory/4391 "2022-03-08T22:43:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/liz/32/1891_2.png) [@Liz](https://forums.creativeclouddeveloper.com/u/Liz)\
**Post date:** [March 8, 2022, 10:43pm UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-to-open-a-file-in-photoshop-uxp-using-a-local-path-that-is-not-in-the-plugins-directory/4391/1 "2022-03-08T22:43:26Z")

</div>

I am trying to write a UXP Plugin that opens a file from a local path:

```auto
  const path = "/some/example/path/file";
  const pickedFile = await fs.getFileForOpening({ initialLocation: path });
  const openedFile = await app.open(pickedFile);

```

This seems to just open a file picker and not the file itself. I feel like I’m probably missing something super obvious.

thanks,  
-Liz

---

<div class="post-metadata">

**Author:** ![Ali](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ali/32/21_2.png) [@Ali](https://forums.creativeclouddeveloper.com/u/Ali)\
**Post date:** [March 11, 2022, 10:09am UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-to-open-a-file-in-photoshop-uxp-using-a-local-path-that-is-not-in-the-plugins-directory/4391/2 "2022-03-11T10:09:28Z")

</div>

Not possible. If you don’t want the user to “pick” the file, you either have to put it in the plugin’s folder or fetch it ([Network I/O](https://developer.adobe.com/photoshop/uxp/guides/uxp_guide/uxp-misc/network-io/)). To get a file from anywhere on the machine, you need to show the file-picker dialog outside the plugin folder ([File access](https://developer.adobe.com/photoshop/uxp/guides/uxp_guide/uxp-misc/file-access/)).

I assume you want to add some sort of permanent asset? If so, it’s better to put them in the plugin folder. Or fetch it once and put it in the Secure Storage, but you may lose it when the user uninstalls the plugin, so check for it and re-fetch it if it was not there on load.

---

<div class="post-metadata">

**Author:** ![Liz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/liz/32/1891_2.png) [@Liz](https://forums.creativeclouddeveloper.com/u/Liz)\
**Post date:** [March 14, 2022, 9:46pm UTC](https://forums.creativeclouddeveloper.com/t/is-it-possible-to-open-a-file-in-photoshop-uxp-using-a-local-path-that-is-not-in-the-plugins-directory/4391/3 "2022-03-14T21:46:58Z")

</div>

Got it. Thanks for the response!
