javascript - File.Transfer in cordova Cannot read property 'lengthComputable' of undefined -


i need download 1 file ,

i following error,

cannot read property 'lengthcomputable' of undefined - error filetransfer.js

this code

document.addeventlistener("deviceready", ondeviceready, false);          // device apis available         //         function ondeviceready() {             // retrieve image file location specified source             var filetransfer = new filetransfer();             var uri = encodeuri("https://www.yyy.com/aspl.bak");             var filepath = "oa.apk";             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);                 },                 false,                 {                     headers: {                         "authorization": "basic dgvzdhvzzxjuyw1lonrlc3rwyxnzd29yza=="                     }                 }             );         } 


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -