Hi!
I'm trying to connect to an opinionated API that is particular about the form-data files I POST to it. It is expecting the file properly encoded.
Comparing a postman output on request.bin that works:
----------------------------628307875462274245470824
Content-Disposition: form-data; name="source"; filename="foo.txt"
Content-Type: text/plain
{{PLAIN TEXT HERE}}
However, Retool's POST is more like this:
----------------------------459215017732686404721387
Content-Disposition: form-data; name="source"; filename="foo.txt"
Content-Type: application/octet-stream
{atob() of my plain text content here}
I've tried passing into the endpoint a type: 'text/plain', but it seems like Retool isn't respecting it.
This is the data I'm passing in:
And this is how I'm passing in this into the REST endpoint: