You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/04/02 05:48:32 UTC

[GitHub] [cordova-plugin-file-transfer] 08Thug opened a new issue #255: can't abort while downloading

08Thug opened a new issue #255: can't abort while downloading
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/255
 
 
   # Bug Report
   
   ## Problem
   i am trying to cancel the downloads on using abort function.but abort fuction stays idle.
   ### What is expected to happen?
   when abort function is called it should abort the di\ownload!
   
   
   ### What does actually happen?
   abort function stays idele even if called
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!--
   this.fileTransfer = this.transfer.create();
       this.fileTransfer.onProgress(ProgressEvent => {
         this._zone.run(() => {
           this.util.progressWidth =
             (ProgressEvent.loaded / ProgressEvent.total) * 100;
           // this.color = "#ff0000";
           this.util.progressPercent = Math.round(this.util.progressWidth);
           console.log("------", this.util.progressWidth, "----------");
           console.log("------", this.util.progressPercent, "----------");
         });
       });
   // this.fileTransfer.abort();
       this.fileTransfer.download(url, this.dwfilePath + pdfname, true).then(
         entry => {
           //here logging our success downloaded file path in mobile.
   
           console.log("download completed: " + entry.toURL());
           this.entryurl=entry.toURL();
           this.modalController.dismiss(); 
           // this.openFile(entry.toURL());
         },
         error => {
           this.util.presentToast(
             this.translateService.instant(
               "chat.Download failed. Please try again."
             )
           );
           //here logging our error its easier to find out what type of error occured.
           this.modalController.dismiss();
           console.log("download failed: " + JSON.stringify(error));
         }
       );
     }
   removedfile()
   {
     console.log(this.filenames,"the pdf name in remove file")
     this.dwfilePath = this.file.externalRootDirectory;
     this.file.removeFile(this.dwfilePath,this.filenames)
     this.fileTransfer.abort();  
   } -->
   
   
   
   ### Environment, Platform, Device
   <!-- IN both Android and IOS-->
   
   
   
   ### Version information
   <!-- 
   Ionic:
   
      Ionic CLI                     : 6.0.1 (/usr/lib/node_modules/@ionic/cli)
      Ionic Framework               : @ionic/angular 4.11.10
      @angular-devkit/build-angular : 0.13.9
      @angular-devkit/schematics    : 7.2.4
      @angular/cli                  : 7.3.9
      @ionic/angular-toolkit        : 1.4.1
   
   Cordova:
   
      Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
      Cordova Platforms : android 8.1.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 3.1.2, (and 41 other plugins)
   
   Utility:
   
      cordova-res : not installed
      native-run  : 0.3.0
   
   System:
   
      Android SDK Tools : 26.1.1 (/home/bsetec/Android/Sdk)
      NodeJS            : v10.14.0 (/usr/bin/node)
      npm               : 6.4.1
      OS                : Linux 3.13
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-file-transfer] 08Thug closed issue #255: can't abort while downloading

Posted by GitBox <gi...@apache.org>.
08Thug closed issue #255: can't abort while downloading
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/255
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-file-transfer] 08Thug commented on issue #255: can't abort while downloading

Posted by GitBox <gi...@apache.org>.
08Thug commented on issue #255: can't abort while downloading
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/255#issuecomment-608266683
 
 
   looks like device issue abort() supported in other device!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org