# Access Flow file location

**URL:** <https://discourse.nodered.org/t/access-flow-file-location/62167>\
**Category:** General\
**Created:** [4 May 2022 10:03 UTC](https://discourse.nodered.org/t/access-flow-file-location/62167 "2022-05-04T10:03:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arminder.lubana](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@arminder.lubana](https://discourse.nodered.org/u/arminder.lubana)\
**Post date:** [4 May 2022 10:03 UTC](https://discourse.nodered.org/t/access-flow-file-location/62167/1 "2022-05-04T10:03:42Z")

</div>

Hi All,

Can anybody guide me how i can access flow file location as variable or any other way in the flow instead of hardcoded?

Thanks in advance.  
Arminder

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [4 May 2022 10:10 UTC](https://discourse.nodered.org/t/access-flow-file-location/62167/2 "2022-05-04T10:10:43Z")

</div>

That information is not exposed in any way a flow can access it.

One approach would be for you to add some code to settings.js that figures out where the flow file is, and sets an environment variable that can then be accessed by the flows.

---

<div class="post-metadata">

**Author:** ![arminder.lubana](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@arminder.lubana](https://discourse.nodered.org/u/arminder.lubana)\
**Post date:** [5 May 2022 10:07 UTC](https://discourse.nodered.org/t/access-flow-file-location/62167/3 "2022-05-05T10:07:36Z")

</div>

thanks for information Knolleary

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 July 2022 10:08 UTC](https://discourse.nodered.org/t/access-flow-file-location/62167/4 "2022-07-04T10:08:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
