Hi,
I’m almost newbie on n8n and I facing an error trying to send a binary audio file to a http request.
For context: I’m trying to create a workflow that saves for me such information by a Telegram voice message. To do that, I’m trying to pass the binary file to a self hosted RestFul api.
I tried several ways such as passing “data” directly from Telegram node, or adding a code node to preprocess the file.
Can someone help me?
Thanks
hello @smxworld
Actually it looks good. Are you shure tha your restfulApi accept form-data requests? You can open the developer console (f12) and see in the Console tab the actual request from the n8n.
Hi @barn4k ,
thanks for the reply.
Yes, I’m sure. I developed and tested the API with commands like thisì:
curl -X POST \
-H "Content-Type: multipart/form-data" \
-F "file=@/path/to/file.mp3" \
http://localhost:5000/transcribe
There was an issue in the Rest API, nothing with the workflow