This question is locked. New answers and comments are not allowed.
I have the following code:
fileTransfer.download(
"http://radio.aplus.by/templates/radio.aplus.by/images/logo.png",
"file:///%simulator_persistent_root%/imgcache/25da062ac69658915c42d44c7e04f3366e0c7fcd.png",
function(){alert("success");},
function(e){alert("fail");},
false);
It successfully downloads the file, but the error handler is called and this is what error object looks like:
FileTransferError {code: 3, source: "http://radio.aplus.by/templates/radio.aplus.by/images/logo.png", target: null, http_status: 400, body: null}
fileTransfer.download(
"http://radio.aplus.by/templates/radio.aplus.by/images/logo.png",
"file:///%simulator_persistent_root%/imgcache/25da062ac69658915c42d44c7e04f3366e0c7fcd.png",
function(){alert("success");},
function(e){alert("fail");},
false);
It successfully downloads the file, but the error handler is called and this is what error object looks like:
FileTransferError {code: 3, source: "http://radio.aplus.by/templates/radio.aplus.by/images/logo.png", target: null, http_status: 400, body: null}