[ https://issues.apache.org/jira/browse/CB-8969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531386#comment-14531386 ]
Young Park commented on CB-8969: -------------------------------- I get this status.. http://somedomain.com/something.db is a regular file which you can wget and download. Had no problem with this with Cordova 4.x version (i believe it was 4.1) {"code":3,"source":"http://somedomain.com/something.db","target":"/data/data/com.myapp.app/databases/something.db","http_status":401,"body":null,"exception":null}" I'm using ngCordova (ngcordova.com) as wrapper. Here's the code {code} $cordovaFileTransfer.download(url, targetPath+file.filename, options, trustHosts) .then(function(result) { console.log("download "+url+" to "+targetPath+" succeeded"); // Success! $cordovaFile.checkFile(targetPath, file.filename).then(function(success){ console.log("found file: "+angular.toJson(success)); }, function(error){ console.log("error checking file: "+angular.toJson(error)); }); downloadData(filesToUse); // recursive }, function(err) { console.log("download error: "+angular.toJson(err)); // Error }, function (progress) { $timeout(function () { progressFileSize += parseInt(progress.loaded); $scope.downloadProgress = parseInt((progressFileSize / totalFileSize) * 100); //console.log("download progress: "+downloadProgress); //console.log("progress: "+angular.toJson(progress)); }); }); {code} > File Transfer plugin fails download > ----------------------------------- > > Key: CB-8969 > URL: https://issues.apache.org/jira/browse/CB-8969 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 5.0.0 > Reporter: Young Park > > When I was using Cordova 4.x version, downloading file from server was > working fine with using file transfer plugin (Android). iOS is working fine. > After I upgraded to Cordova 5.0.0, download always gives CODE 3 error when > using with file transfer plugin. > Here's the version i used: > cordova-plugin-file 2.0.0 "File" > cordova-plugin-file-transfer 1.0.0 "File Transfer" -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org