I'm writing a client that can send multipart reque...
# ktor
c
I'm writing a client that can send multipart requests, to upload an image. In the documentation, I found this, but it doesn't go into the details of how it can be done. I also found this Medium post, that explains what can be done in much more details, however it uses
File
, which is not multiplatform at the moment. What would be the idiomatic way to send a file in a multiplatform way, with Ktor? (at the very least I'm targeting JVM JS and iOS)