Needing to change the binary field name from "data"

Describe the problem/error/question

Similar to Changing binary field name [ data ] google drive - Questions - n8n Community, I am needing to change the object name from “data” to something else, like “text” in order to merge files. However, the code provided by Simon is not working for me.

I’m already renaming the filename using: $input.item.binary.data.fileName = ‘1.pdf’

It would seem that something along the lines of $input.item.binary = ‘text’ would work, but I’m not finding it.

The below is a partial workflow, let me know if you need to see more to assist.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Here’s what I have:

Here’s what I want:

Thank you for any help you can provide! Really liking n8n so far and has been a lot of fun to work in.

Information on your n8n setup

  • **n8n version: 1.84.3
  • **Database (default: SQLite): Supabase/Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • **Operating system: Ubuntu

Take the file, throw an Extract from File Node on there to Base64, then connect up a convert to File node FROM Base64 and name it whatever you want. From here you can easily throw this into a loop and change filenames programmatically as well.

Here is my JSON Workflow:

1 Like

Very nice, thank you!

Here’s the final flow with the solution from SolomonChrist:

1 Like

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