I'm writing a retrofit implementation and I have the following interface method:
suspend fun uploadAvatar(file: Any, sessionToken: String)
In my impelementation I'm trying to override the 'file' parameter as a MultipartBody.Part object:
override suspend fun uploadAvatar(file: MultipartBody.Part, sessionToken: String)
and I'm getting the following error:
I can see that okhttp3 is written in Java and I'm assuming that's the reason for the error. If so how do I get around it? Otherwise what else could be going on?
