Uploading file on server using retrofit
Uri#getPath
returns the path component of the Uri
, not the path on the filesystem.
You need to query the content provider for the actual image. Something like this: https://stackoverflow.com/a/20186918/132047