# How to open a “Select folder” dialog from Node-Red)?

**URL:** <https://discourse.nodered.org/t/how-to-open-a-select-folder-dialog-from-node-red/38575>\
**Category:** Developing Nodes\
**Created:** [5 January 2021 09:56 UTC](https://discourse.nodered.org/t/how-to-open-a-select-folder-dialog-from-node-red/38575 "2021-01-05T09:56:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Allen](https://discourse.nodered.org/u/Allen)\
**Post date:** [5 January 2021 09:56 UTC](https://discourse.nodered.org/t/how-to-open-a-select-folder-dialog-from-node-red/38575/1 "2021-01-05T09:56:48Z")

</div>

I create a new node, I need load json file to do something. Could I open a “Select folder” dialog to select json file instead of absolute json path. ![filepath](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4c55a09d2159eb60de40e3133229f5e7a0921560.jpeg)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [5 January 2021 10:24 UTC](https://discourse.nodered.org/t/how-to-open-a-select-folder-dialog-from-node-red/38575/2 "2021-01-05T10:24:22Z")

</div>

Wouldn't it be "more node-red" to set filename via msg.payload (or msg.filename for consistency) and use that as the path ?

---

<div class="post-metadata">

**Author:** ![Allen](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Allen](https://discourse.nodered.org/u/Allen)\
**Post date:** [5 January 2021 10:50 UTC](https://discourse.nodered.org/t/how-to-open-a-select-folder-dialog-from-node-red/38575/3 "2021-01-05T10:50:03Z")

</div>

This json file just for credential. I want users to find this json file intuitively. Thanks~

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [5 January 2021 10:52 UTC](https://discourse.nodered.org/t/how-to-open-a-select-folder-dialog-from-node-red/38575/4 "2021-01-05T10:52:55Z")

</div>

For credentials you can use the credentials feature (?)  
[https://nodered.org/docs/creating-nodes/credentials](https://nodered.org/docs/creating-nodes/credentials)

---

<div class="post-metadata">

**Author:** ![Allen](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Allen](https://discourse.nodered.org/u/Allen)\
**Post date:** [5 January 2021 11:38 UTC](https://discourse.nodered.org/t/how-to-open-a-select-folder-dialog-from-node-red/38575/5 "2021-01-05T11:38:28Z")

</div>

Thanks for your reply.  
The credentials json file is used by google API.  
When I call google API need to use it.  
It is different with Node credentials. Thanks~

---

<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:** [6 March 2021 11:38 UTC](https://discourse.nodered.org/t/how-to-open-a-select-folder-dialog-from-node-red/38575/6 "2021-03-06T11:38:45Z")

</div>

Closed on 6 March 2021 11:38 UTC

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