How to attach a file?
B1or opened this issue · comments
B1or commented
How to attach a file? What type of Attachment is and how to convert a file to attachment?
John Carlson commented
See https://square.github.io/okhttp/recipes/#posting-a-file-kt-java
file.asRequestBody("text/x-markdown; charset=utf-8".toMediaType())