You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First time using retrofit2, and immediately making a not-too-small app. I'm kinda rushed learning by doing..
I was trying to upload an image with PartMap and RequestBody, but the image won't uploaded. The request body (text, etc) works perfectly. I've trying to find missing parameters or typos but I didn't found anything wrong. This code run perfectly but the problem is, it cannot upload the image file. What did I do wrong in here?
My guess is TimeInterface anonymous class cannot pass photoPath into its methods. But im not sure :/ Because other variables passed.
Or maybe, file cannot be proccessed by RequestBody.
First time using retrofit2, and immediately making a not-too-small app. I'm kinda rushed learning by doing..
I was trying to upload an image with PartMap and RequestBody, but the image won't uploaded. The request body (text, etc) works perfectly. I've trying to find missing parameters or typos but I didn't found anything wrong. This code run perfectly but the problem is, it cannot upload the image file. What did I do wrong in here?
My guess is TimeInterface anonymous class cannot pass
photoPath
into its methods. But im not sure :/ Because other variables passed.Or maybe, file cannot be proccessed by
RequestBody
.Is there anybody willing to help me? I really appreciate it.
The text was updated successfully, but these errors were encountered: