How to pass msg.path + msg.filename to file-in node?


The msg.path and msg.filename are transferred to the file-in node.
I want to set "msg.path" + "/" + "msg.filename" as the filename of the file-in node.

I tried {{{msg.path}}} and {{msg.path}} but it didn't work.

Thank you.

Use a function node before the file in node.

msg.file = msg.filename;// save file name before overwriting (just in case)
msg.filename = msg.path + "/" + msg.filename;
return msg;