caipivara
2/24/2016 - 5:50 PM

Android / Retrofit - how to upload a file without multipart (as binary) for Kotlin

Android / Retrofit - how to upload a file without multipart (as binary) for Kotlin

interface UploadService {
  @Headers("Content-Type: image/jpeg")
  @POST("/files")
  fun uploadFile(@Body file: TypedFile): Observable<UploadedFile>
}