I want to pick file that exist in sdcard not in internal storage and upload it server but I am not able to get its path for getting its size. I have start a
Change your upload code. Somewhere you will have
FileInputStream fis = new FileInputStream(path);
Change to
InputStream is = getContentResolver().openInputStream(uri);
So use the uri directly. No need for a file path.