Upload binary to onedrive

I want to get images (jpeg) from a static endpoint and upload them to my onedrive. I manage to get the binary files from the http request and download them to my dowlnoad- folder but i don’t manage to upload them to my onedrive. The onedrive node always errors.
The slider on the file- type is set to “binary file
The input binary field is set to {{ $binary.data }}

the error i get:
The item has no binary field ’ [object Object]’ [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

i tried {{ $binary.data.id }} in the binary field but the result is the same.

Is there anyone that can help me (with roundabouts).

Im working with the cloud version 1.54.4 and have pro- plan.

Thx in advance

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

hello @geertv

it should be set to data (as is, without any brackets), as it stands for the field name, not the value

that’s the standard setting for that field and that gave me the error:
Bad request - please check your parameters
Entity only allows writes with a JSON Content-Type header.

that’s why i changed it

Can you please share the workflow?

Try this one

still not working. Error message:
The item has no binary field ’ 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

return $input.all()[0].binary; ===>
image

I have same issue with trying to edit an image

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