Hi Dudi,
Find here please:
http://docs.phonegap.com/en/2.4.0/cor...
Hi Dudi,
Find here please:
http://docs.phonegap.com/en/2.4.0/cor...
Hi Katya,
I did the following code, but I got error "FileTransfer" not define.
Any idea why I get this error, as far I know phonegap already included?
how can I show the user the downloaded file from the code below it's only download it to device?
var fileTransfer = new FileTransfer();
var uri = encodeURI("http://some.server.com/download.php");
fileTransfer.download(
uri,
filePath,
function(entry) {
console.log("download complete: " + entry.fullPath);
},
function(error) {
console.log("download error source " + error.source);
console.log("download error target " + error.target);
console.log("upload error code" + error.code);
}
);
When do you run the code? On what event?
Did you test this on browser or on device installed?
This should be tested on device.
Hi Katya,
I manged it using the following code:
https://gist.github.com/nathanpc/2464060
So now the file stored on the file system and now I want to load & open it to the user.
Any idea how to do it?
Hello,
Please take a look at next links:
http://docs.phonegap.com/en/2.4.0/cor...
https://groups.google.com/forum/#!top...
https://getsatisfaction.com/apperyio/...
Thanks.
I managed it and post it to the forum.
https://getsatisfaction.com/apperyio/...