http request multipart/form-data
I need to send a file via API to an external API. This API receives via body of the multiform type. How do I send this from the typebot http request node?
Folow Curl
curl -X POST 'https://di.xxxxx.com/v1/files/upload' \
--header 'Authorization: Bearer {api_key}' \
--form 'file=@localfile;type=image/[png|jpeg|jpg|webp|gif] \
--form 'user=abc-123'
3 Replies
We can't send file as multipart/form-data with the HTTP request for now
It would work if the service accepts file URLs
But that would be a great option to have
I'm tracking it here: https://github.com/baptisteArno/typebot.io/issues/1419
GitHub
Option to send file as multipart/form-data · Issue #1419 · baptiste...
This would download the file located at the provided URL and send it to the service as multipart/form-data
Thanks @Baptiste !