# BUG: Write file/Read file nodes labelled incorrectly

**URL:** https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179
**Category:** General
**Created:** [25 January 2022 01:52 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179 "2022-01-25T01:52:25Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)
#### Post date: [25 January 2022 01:52 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/1 "2022-01-25T01:52:25Z")

</div>

The newly renamed write file/read file nodes are still referred-to by their old name in the help section.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bdb33df94a9ad33b09a3ac58db522e09f403dd39.png)

Also, how do I pass a filename to the read/write nodes? I tried using **msg.payload** , but it didn't work

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/0/00aaaa626b5a51f80c03a3eae60671a1c8cdd996.png)

Any help would be greatly appreciated. 🙂

Cheers!  
Dax.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [25 January 2022 06:41 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/2 "2022-01-25T06:41:47Z")

</div>

> [@daxliniere](#):
>
> Also, how do I pass a filename to the read/write nodes? I tried using **msg.payload** , but it didn't work

Leave the Filename field empty and pass in msg.filename.

---

<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: [25 January 2022 07:22 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/3 "2022-01-25T07:22:54Z")

</div>

> [@daxliniere](#):
>
> The newly renamed write file/read file nodes are still referred-to by their old name in the help section.

What version of Node-RED are you using?

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [25 January 2022 07:46 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/4 "2022-01-25T07:46:38Z")

</div>

FYI this is in NR 2.1.6

 ![Untitled 6](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/6/866b2c36b8657ee9666a5a9a6dd1a877432c6828.jpeg)

---

<div class="post-metadata">

### Author: ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)
#### Post date: [25 January 2022 10:23 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/5 "2022-01-25T10:23:41Z")

</div>

Oh! And while you're at it, I found another instance in the autocomplete:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a2128177d9abf21a6b071c0694f8be9f6f8276ce.png)

---

<div class="post-metadata">

### Author: ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)
#### Post date: [25 January 2022 10:25 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/6 "2022-01-25T10:25:17Z")

</div>

Yep, me too, 2.1.6.

---

<div class="post-metadata">

### Author: ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)
#### Post date: [25 January 2022 10:26 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/7 "2022-01-25T10:26:26Z")

</div>

> [@jbudd](#):
>
> Leave the Filename field empty and pass in msg.filename.

Ahh, thank you very much @jbudd. @knolleary, could you please add that information to the help section? I'd have had no idea otherwise, though I did look in the help item.

---

<div class="post-metadata">

### Author: ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)
#### Post date: [25 January 2022 10:30 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/8 "2022-01-25T10:30:49Z")

</div>

> [@daxliniere](#):
>
> @knolleary, could you please add that information to the help section? I'd have had no idea otherwise, though I did look in the help item.

Ahhh! Maybe it would be best to add this as the light grey hint text inside the textbox??

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/0/3021556b298c775aecf92fcff0899bac68eff76d.png)

---

<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: [25 January 2022 11:12 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/9 "2022-01-25T11:12:55Z")

</div>

@daxliniere I have raised an issue to cover the incorrect labelling of the node in the help sidebar.

> <https://github.com/node-red/node-red/issues/3369>
>
> \### Current Behavior
> 
> The help sidebar lists the nodes in the palette.
> 
> It is …using the underlying node type, not the paletteLabel property. This means it lists \`rbe\` \`file\` and \`file in\` instead of \`filter\`, \`file write\` and \`file read\` as shown in the palette.
> 
> \### Expected Behavior
> 
> The help sidebar should list nodes using their paletteLabel (if set)
> 
> \### Steps To Reproduce
> 
> \_No response\_
> 
> \### Example flow
> 
> \`\`\`
> paste your flow here
> \`\`\`
> 
> 
> \### Environment
> 
> \- Node-RED version: 2.1.6

As for the help text... the help text for both file nodes does tell you it access `msg.filename` in order to set the filename:

 ![Node-RED](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9fe31eaccb03a85d55c7d1c1c2915022dd815863.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7d7abb41fece39031a0819d5b3140e0b379dc445.png)

---

<div class="post-metadata">

### Author: ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)
#### Post date: [25 January 2022 17:31 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/10 "2022-01-25T17:31:57Z")

</div>

> [@knolleary](#):
>
> I have raised an issue to cover the incorrect labelling of the node in the help sidebar.

Awesome. 🙂

> [@knolleary](#):
>
> As for the help text... the help text for both file nodes does tell you it access `msg.filename` in order to set the filename:

I know that I'm a NR noob, but what I find confusing is that I feel like the terminology changes in different parts of the interface. Sometimes there are references to msg.xyz, other times just as xyz  
Perhaps it's just that I've missed the right-aligned text because I didn't know that it implied that it meant msg.xyz. With that new knowledge, I'll keep an eye out for specific examples of that. (Maybe I will find none 🙂 )

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/59911b68bb0ec6ec3ecdaee88f4da9af6487338b.png)

In reply to this specific instance, I feel it's impossible to know if filename is just the name of a file (static) or some kind of variable. I'm pretty sure that I've seen other textbox hints that said things like msg.filename.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/2/22a8aa566c4bade5179a44a8c68796c5b731a1f7.png)

---

<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: [26 March 2022 17:32 UTC](https://discourse.nodered.org/t/bug-write-file-read-file-nodes-labelled-incorrectly/57179/11 "2022-03-26T17:32:46Z")

</div>

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