Hello everyone, I'm working with Ktor on an Androi...
# ktor
l
Hello everyone, I'm working with Ktor on an Android app and I want to upload a File (e.g. a photo) in a PUT call Do you know how to do it ? I see the :
submitFormWithBinaryData
but it seems to be a POST call Thanks
a
You can use the setBody method to send a request body, which can be a file's content. To make a PUT call, just replace the
post
method call with the
put
method.