app / com.pzpg.ogr.api.request / RequestServer / uploadImage
uploadImage
suspend fun uploadImage(dir: String, name: String, jwtToken: String): String
Suspend method to upload an image which will processed to the server
Parameters
dir - a directory where the image is located, has String type
name - a name of the image has String type
jwtToken - access token gotten from refreshToken method or authorize
Exceptions
BadRequestException -
UnauthorizedException -
TimeOutException -
RequestServerException -
Return guid of the uploaded image, has String type
Author Władysław Jakołcewicz