Share feedback, ideas and get community help

Updated 9 months ago

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'
B
A
g
7 comments
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
Thanks @Baptiste !
Hi @Baptiste - I just came here to request this and see it is already in the queue.

I keep running into situations where this would be VERY useful as some APIs just seem to only work with form data. Plus it does make them easier to set up and run at times.

Any chance to prioritize this one?
Oh, and you have it set as a solution to get the form elsewhere and bring it in? Any chance we could just have the form right in the block similar to postman?
Add a reply
Sign up and join the conversation on Discord