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
You needed to create RequestBody in order to upload the image Uri.
val params =HashMap<String, RequestBody>()
val fileName =InputStreamRequestBody.getFileName(context, uri)
// "file" is your image upload field name
params["file\"; filename=\"${fileName}\""] =InputStreamRequestBody(context, uri)
apiService.uploadUri(params)
I am getting this while when i use the image from docment gallery Permission Denial: opening provider com.android.providers.downloads.DownloadStorageProvider from ProcessRecord
You needed to create RequestBody in order to upload the image Uri.
Please add a comment below if you need more help on this.
The text was updated successfully, but these errors were encountered: