forked from github/cordova-android
trim file:// URI from uri->path conversion method
This commit is contained in:
parent
d87ee719a3
commit
7c1eb7da9b
@ -1025,6 +1025,9 @@ public class FileUtils extends Plugin {
|
||||
return ctx.getContentResolver().openInputStream(uri);
|
||||
}
|
||||
else {
|
||||
if (path.startsWith("file://")) {
|
||||
path = path.substring(7);
|
||||
}
|
||||
return new FileInputStream(path);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user