Download binary file

Hi @inop, if the file is linked in your webhook through a URL you’d need two separate HTTP requests for the case you have described: The first one to download the file from the URL you receive in your webhook, the second one to send it to your destination.

Assuming you are receiving a webhook request like this:

curl --request POST \
  --url https://your.n8n.url/webhook-test/022076cd-0925-4f85-9bc6-b5bdc0f354f2 \
  --header 'Content-Type: application/json' \
  --data '{
	"file_url": "https://upload.wikimedia.org/wikipedia/commons/4/45/Ode_to_Joy_-_Concert_Band_-_United_States_Air_Force_Band_of_the_Rockies.mp3"
}'

The workflow could look like so:

The important part here is that you pick Form-Data as the Body Content Type when uploading a file and specify the correct binary property so n8n can identify the file to upload:

Afterwards the file should be uploaded to your destination as expected. In the example workflow I’ve used a URL provided by webhook.site, making this easy to verify as it shows the full request it has received:

Hope this helps!