Downloaded file named with tag instead of value

Describe the problem/error/question

Hello, everybody. Hope you all doing well. That’s my first time here, so if I made some mistake, please let me know.

I’m running in my local machine an instance of n8n community version, and I have my workflow to update some data in eazyBI and in the end I download the dashboard.

The problem is with the file’s name when I download. IT works when I hardcoded it, but I want to grab the real file’s name when I download it, but instead I’m getting the binary variable name like {{ $binary.data.fileName }}.

How can I grab the file’s name coming from the data binary file?

PS: I tried also with $json and had the same result.

What is the error message (if any)?



file name

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.95.3
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm/desktop app
  • Operating system: Windows 11 24H2

I discover how to handle this for now. For Windows, apparently you need to put a forward slash instead of backslash in the path name, like C:\Users\My_User\Downloads/{{ $binary.data.fileName }}

Resolution

2 Likes

Glad you find it !

The normal way is working in linux but windows is different in the file path

1 Like

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