Skip to content

Instantly share code, notes, and snippets.

@stepango
Created November 10, 2016 10:19
Show Gist options
  • Save stepango/e723aae2e5417bd2d0159f18af36469d to your computer and use it in GitHub Desktop.
Save stepango/e723aae2e5417bd2d0159f18af36469d to your computer and use it in GitHub Desktop.
How to upload file via Retrofit2 without multipart
interface UploadApi {
@PUT fun uploadFile(@Url url: String, @Body file: RequestBody): Observable<Response<Any>>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment