diff --git a/plugin.xml b/plugin.xml
index ef01aca..91a08b2 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -14,7 +14,7 @@
-
+
diff --git a/src/android/com/synconset/CordovaHTTP/CordovaHttpDownload.java b/src/android/com/synconset/CordovaHTTP/CordovaHttpDownload.java
index e046186..ba700e2 100644
--- a/src/android/com/synconset/CordovaHTTP/CordovaHttpDownload.java
+++ b/src/android/com/synconset/CordovaHTTP/CordovaHttpDownload.java
@@ -45,7 +45,7 @@ public class CordovaHttpDownload extends CordovaHttp implements Runnable {
URI uri = new URI(filePath);
File file = new File(uri);
request.receive(file);
- JSONObject fileEntry = FileUtils.getEntry(file);
+ JSONObject fileEntry = FileUtils.getFilePlugin().getEntryForFile(file);
response.put("file", fileEntry);
this.getCallbackContext().success(response);
} else {
diff --git a/www/cordovaHTTP.js b/www/cordovaHTTP.js
index a879e20..0db45f1 100644
--- a/www/cordovaHTTP.js
+++ b/www/cordovaHTTP.js
@@ -52,11 +52,13 @@ var http = {
*
*/
var win = function(result) {
- var entry = new (require('org.apache.cordova.file.FileEntry'))();
+ var entry = new (require('cordova-plugin-file.FileEntry'))();
entry.isDirectory = false;
entry.isFile = true;
entry.name = result.file.name;
entry.fullPath = result.file.fullPath;
+ entry.filesystem = new FileSystem(result.file.filesystemName || (result.file.filesystem == window.PERSISTENT ? 'persistent' : 'temporary'));
+ entry.nativeURL = result.file.nativeURL;
success(entry);
};
return exec(win, failure, "CordovaHttpPlugin", "downloadFile", [url, params, headers, filePath]);