Closed B1or closed 4 years ago
How to attach a file? What type of Attachment is and how to convert a file to attachment?
See https://square.github.io/okhttp/recipes/#posting-a-file-kt-java
file.asRequestBody("text/x-markdown; charset=utf-8".toMediaType())
How to attach a file? What type of Attachment is and how to convert a file to attachment?