Hey guys, does anyone have an example on how to send a Post request to an url with a File parameter?
I’ve tried with submitFormWithBinaryData. When a File is detected it gets the inputStream.asInput().
However the response that I’m getting is not what’s expected.. any ideas?
g
gildor
03/26/2019, 11:35 AM
Maybe your server expects multipart/form-data, not raw binary
s
Sergioedcigreja
03/26/2019, 11:40 AM
I’ve also used the call(url) method where in the request builder I had body = MultiPartFormDataContent(formData { ….
and it still didnt work