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?