Help Uploading Images to Bunny.net from Google Drive via n8n

Hello, complete newbie here—thanks in advance for any help!

I’m trying to use n8n to upload images from Google Drive to Bunny.net, so I can generate a public URL for each image to use in social media posts.

So far:

  • The Google Drive node seems to be working correctly and returning binary data.
  • I’m using an HTTP Request (PUT) node to send the image to Bunny.net.
  • The Bunny.net API returns a 201 Created response, and the file name appears in the storage zone.

Issue:

  • When I try to access the image via its Bunny.net URL, I get a corrupted image/logo placeholder.
  • In the Bunny.net dashboard, the uploaded file sizes show as only 4B or 12B, which suggests the image data isn’t actually being sent.
  • I also need to output the correct public URL in n8n for each uploaded image.

Does anyone know what I might be missing in terms of the body setup for the HTTP request or how to properly output the Bunny CDN URL?

Thanks so much!


hi,
can you try {{ $binary.data.data }} or {{ $input.item.binary.data.data }}

Hi @Chris_Morris ,

try it with this configuration for body:

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