<Not getting a proper file URI, getting content UR...
# stackoverflow
u
Not getting a proper file URI, getting content URI instead I need the user to pick a file to post on the server and for that inside my activity I am opening a file explorer activity like this: val intent = Intent() .setType("*/*") .setAction(Intent.ACTION_GET_CONTENT) startActivityForResult(Intent.createChooser(intent, "Select a file"), 111) For that I am overriding onActivityResult like this: override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode,...