Good evening, I am developing an application in phonegap and I need to download images on the SD card, but I get an error, I hope someone can help me, thanks
<a href="#" onclick="downloadImagess()">Download File</a>
function downloadImagess(){
alert("download just started.");
var url = 'https://image.freepik.com/vector-gratis/glifos-egipto_23-2147522976.jpg';
var filename= 'Egipto';
try{
var ft = new FileTransfer();
ft.download(
url,
target_directory + filename,
function(entry) {
alert("download complete!:"); //path of the downloaded file
},
function(error) {
alert("download error" + error.code);
//alert("download error" + JSON.stringify(error));
}
);
}
catch (e){
//alert(JSON.stringify(e));
}
}
Also left the image of the error http://fotos.subefotos.com/850cbc202b844108ba7f2bddba098856o.png