Unable to use attachments in email or http post

I’m getting an error when trying to attach a file either via smtp or http.

Describe the problem/error/question

I’m building an automated email that sends a reminder when an end user has not completed a process. The challenge and complexity is that i need to first check if the business has their own logo uploaded and if not, fetch a default logo. I’ve managed to solve that process with a Read file from Disk and then use an IF to go and fetch the fallback Logo. The issue is when trying to use either send email or http post that i’m unable to attach the logo. In the workflow below the logo is returned but the only way i could get the attachment to work was using the data in the attachment column.

!
But that means I cannot set the CID and the CID in the email is set to this: Content-ID: <>

If i switch to using [
{
binaryPropertyName: ‘data’,
cid: ‘logo’,
disposition: ‘inline’
}
] I keep getting the error mentioned. Any suggestions?

What is the error message (if any)?

The item has no binary field ‘[ { binaryPropertyName: ‘data’’ [item 0]

Check that the parameter where you specified the input binary field name is correct, and that it matches a field in the binary input

Please share your workflow

type or paste code here

Share the output returned by the last node

The item has no binary field ‘[ { binaryPropertyName: ‘data’’ [item 0]
Check that the parameter where you specified the input binary field name is correct, and that it matches a field in the binary input

Information on your n8n setup

  • **n8n version:1.88.0
  • **Database (default: SQLite):Default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • **Operating system:Windows Server

each time i try and paste my workflow i get a 403 Forbidden and the endpiont returns a cloudflare response.

I’m not sure how else to share my workflow, so i’m adding a privatebin paste here : PrivateBin