Created
November 10, 2016 10:19
-
-
Save stepango/e723aae2e5417bd2d0159f18af36469d to your computer and use it in GitHub Desktop.
How to upload file via Retrofit2 without multipart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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