[ 
https://issues.apache.org/jira/browse/CB-8969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531880#comment-14531880
 ] 

Young Park commented on CB-8969:
--------------------------------

I tried without ngCordova. Here's the code used...

{code}
var ft = new FileTransfer();
          ft.onprogress = function(progress) {
            progressFileSize += parseInt(progress.loaded);
            $scope.downloadProgress = parseInt((progressFileSize / 
totalFileSize) * 100);
          };
          ft.download(
            url,
            targetPath+file.filename,
            function(result){
              console.log("download "+url+" to "+targetPath+" succeeded");

              $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);

            }, function(error){
              console.log("download error: "+angular.toJson(error));
            },
            trustHosts,
            options
          );
{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

Reply via email to