Upload image using HTTP request

I am trying to upload generated image via cloudinary
But everytime i got error msg that binary file wasn’t found. I am really stuck look trough several posts, but still don’t understand what to change. I tried almost everything and nothing has worked for me.

  • Running n8n via cloud
  • Windows 11


Check out this video:

From your screenshot. Just wonder why there is another path link back to the HTTP Request.
Can you show a full workflow?

The first time path should be good. So the error might be triggered from 2nd time.

1 Like


Yes, you’re right, i just checked - when there is only one connection everything works but how to implement more complex logic? Use merge? It’s strange to me that when we have one connection everything works, and then everything stops working even if we directly link to the file we need.

First, what is the meaning of “complex logic”? can you describe it to us? Maybe I can help more ;D

For example, like in my example - i have some messages using telegram and only after that i need my binary image. So, what should i do in this case?

Because in default. Binary only can refer from last node. If you put another path back to the upload node.

It might already lost the binary file so it trigger the error.

If you need to upload multiple times. Make sure the binary is passing through.

Merge might be working.

or maybe this code node could help you

1 Like

Ah!
So after image resized, you want to make a request to the api, and also send the image to telegram right?
Correct me if I’m wrong.

Yes, thx! Merge works for me


Magic Code didn’t solve the problem. well or maybe I didn’t fully understand how to use it. It would be great if this was somehow very clearly spelled out in the documentation.

Yes, thx! Merge works for me


Magic Code didn’t solve the problem. well or maybe I didn’t fully understand how to use it. It would be great if this was somehow very clearly spelled out in the documentation.
Guys, thank you so much for your time and help!

Sure thing. Please help to select as solution if that helps!

Thanks

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