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

hi

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;

oh!!Right

thanks!!!!

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