diff --git a/framework/src/org/apache/cordova/FileUtils.java b/framework/src/org/apache/cordova/FileUtils.java index ec81fc71..3646be6b 100755 --- a/framework/src/org/apache/cordova/FileUtils.java +++ b/framework/src/org/apache/cordova/FileUtils.java @@ -755,6 +755,9 @@ public class FileUtils extends Plugin { * @throws JSONException */ private JSONObject getFileMetadata(String filePath) throws FileNotFoundException, JSONException { + if (filePath.startsWith("file://")) { + filePath = filePath.substring(7); + } File file = new File(filePath); if (!file.exists()) {