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 2019/11/06 12:20:42 UTC

[GitHub] [cordova-plugin-file-transfer] SachinJat opened a new issue #246: Downloaded file got in 0 Bytes

SachinJat opened a new issue #246: Downloaded file got in 0 Bytes
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/246
 
 
   Using Ionic 3.20.1 and node 10.16.3
   android platform
   this.file.externalRootDirectory+'AppName/Documents/';
   this.platform.ready().then(() => {
             const fileTransfer: FileTransferObject = this.transfer.create();
             fileTransfer.download('https://example.com/filepath/etc.pdf','filename.pdf').then((entry: Entry) => {
               var fileEntry = entry as FileEntry;
               console.log(fileEntry);
             }, (error) => {
             });
           });
   
   My file has been downloaded but got 0 Bytes size
   I don't know what happen? 
   i am using these versions
       "@ionic-native/file": "^4.20.0",
       "@ionic-native/file-chooser": "^4.18.0",
       "@ionic-native/file-opener": "^4.20.0",
       "@ionic-native/file-path": "^4.20.0",
       "@ionic-native/file-picker": "^4.18.0",
       "@ionic-native/file-transfer": "^4.20.0",
   Please help

----------------------------------------------------------------
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