# Insert path into "File In" node

**URL:** <https://discourse.nodered.org/t/insert-path-into-file-in-node/22540>\
**Category:** General\
**Created:** [3 March 2020 03:58 UTC](https://discourse.nodered.org/t/insert-path-into-file-in-node/22540 "2020-03-03T03:58:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TryAgain](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@TryAgain](https://discourse.nodered.org/u/TryAgain)\
**Post date:** [3 March 2020 03:58 UTC](https://discourse.nodered.org/t/insert-path-into-file-in-node/22540/1 "2020-03-03T03:58:06Z")

</div>

I'm using a flow to create a path to a file via the dashboard. User interfaces the date picker to select year, month, and day, then a slider to get the hour of interest. I take the newly created yyyymmddhh and append the rest of the path such that the final output string looks like this: "/home/pi/DaveCSV/2020012309.csv". This part is working as I had hoped - at least it shows correctly in the debug window exactly as I want.  
The question is, I want that path to show up in my File In node, in the "Filename" blank. I'm struggling to tell the "File In" node where to look for my file. When I paste in the created path into the Filename blank, it works correctly so I know my path and filename are created correctly and there really is a file there by that name. I can read and parse without issue. I just can't get the created path to show up in the Filename field of the File In node.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 March 2020 07:02 UTC](https://discourse.nodered.org/t/insert-path-into-file-in-node/22540/2 "2020-03-03T07:02:43Z")

</div>

Off the top of my head....  
I'm sure the file in node side bar help info says something like leave file name field blank and send file name in `msg.filename`

Try putting a change node before the file in node and set `msg` and `filename` to your file path.

> [@TryAgain](#):
>
> I just can't get the created path to show up in the Filename field of the File In node.

Note, the file name will never "show up" in the field. You leave it blank to be able to send in any number of different filenames dynamically.

---

<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:** [2 May 2020 07:02 UTC](https://discourse.nodered.org/t/insert-path-into-file-in-node/22540/3 "2020-05-02T07:02:45Z")

</div>

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