We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17155ed commit 0150006Copy full SHA for 0150006
src/android/FileUtils.java
@@ -1318,6 +1318,9 @@ public CordovaPluginPathHandler getPathHandler() {
1318
io = webView.getContext().getAssets().open(fileTarget);
1319
mimeType = getMimeType(fileUri);
1320
} else {
1321
+ if (fileUri.getScheme() == null) {
1322
+ fileUri = Uri.parse(fileSystem.rootUri.getScheme() + "://" + fileUri.getPath());
1323
+ }
1324
CordovaResourceApi.OpenForReadResult resource = resourceApi.openForRead(fileUri);
1325
io = resource.inputStream;
1326
mimeType = resource.mimeType;
0 commit comments