Issue when uploading gmail attachment to onedrive

Describe the problem/error/question

I have a problem when trying to upload a gmail attachment to onedrive

What is the error message (if any)?

Please share your workflow

Problematic node

the same issue with

When I tried to upload a file without the binary flag, the file was uploaded, but it was corrupted.

Information on your n8n setup

  • n8n version:1.15.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via: npm
  • Operating system: ubuntu


This is also interesting:

Gmail attachment is not binary? :thinking:

Another update, this scenario with saving the file to disk works :thinking:

So I can solve my problem with a workaround, with saving the data to disk

Hey @migellal,

Annoyingly in n8n binary data can only be used from the node before the node you are running so if the Create Folder node doesn’t output the binary item it won’t be in the Upload File node. To get around this you would need to use a merge node from the Code node and the Create Folder node to bring the binary data forward.

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