Send binary file in the http request issue

Hello i am trying to send an http request with a text file as binary

here is the curl which works on my PC

curl --location 'https://api.Domain.com/api/operator/claim-bd?toVerify=true' \
--header 'sec-ch-ua-platform: "Windows"' \
--header 'Authorization: JWT XXXXXXXXXX' \
--header 'Referer: https://Domain.com/' \
--header 'distributorId: 1' \
--header 'timeZone: Asia/Riyadh' \
--header 'sec-ch-ua: "Chromium";v="130", "Microsoft Edge";v="130", "Not?A_Brand";v="99"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'fileType: vouchers' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0' \
--header 'Accept: application/json, text/plain, */*' \
--header 'DNT: 1' \
--form 'file=@"/C:/Users/username/Desktop/file.txt"'

and this works fine on postman but not in N8N
here is my flow

and here is my convert to file

and here is my last http request which is failing

another failing attempt

is there is any suggestion on how to resolve this issue?

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:

Hi @scropion86

You’re almost there :slight_smile:

You need to put data as the fieldname of the binary file in the Input Data Field Name (no expression)

i already have tried this but it will not work since there is another node in the middle.

even after modifying it still not working and asks to contact the customer support.

as per the backend engineer this is due that no file received

Hi @scropion86

Ah, sorry, yes I missed that. In this case you can use a merge node to get the binary field “across”.

See here for an example