How To FIX Error When Uploading File Image Using Retrofit 2.0
Published in
1 min readApr 21, 2017
when i’m using tutorial post image JPEG to my server using this tutorial https://futurestud.io/tutorials/retrofit-2-how-to-upload-files-to-server .
my image failed to upload and show error message “your file not allowed to upload”. and then im change MediaType.parse(“multipart/form-data”) to “image/jpg” spesific file type.
Booya My file Succes to upload :D