Created
February 25, 2020 20:15
-
-
Save lordcodes/df2bc46de2ba2b5a5bc0a31fc04ce99c to your computer and use it in GitHub Desktop.
Code for the article "Uploading a file with progress in Kotlin"
This file contains hidden or 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
| fun createUploadRequestBody(file: File, mimeType: String) = | |
| file.asRequestBody(mimeType.toMediaType()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment