michaelpeterlee commented on issue #345:
URL: 
https://github.com/apache/cordova-plugin-file-transfer/issues/345#issuecomment-1188503996

   Additional to this, we can no-longer `download()` due to error, below.
   
   We downgraded dependency `cordova-plugin-file@6.0.2` to no-avail also.
   
   ```
   const oFileEntry = 
_oFileSystem.root.getFile('myfile.png',{create:true,exclusive:false} ...
   const sFullPath = oFileEntry.toUrl();
   const sURL = 'https://mydomain.com/myfile.png';
   
   oFileTransfer = new FileTransfer();
   
   oFileTransfer.download(
     sURL,
     sFullPath,
     function success(oFile) {
       alert("That's all folks!");
     },
     fFail,
     false,
     null
   );
   
   // fFail() presents the following error object:
   
   FileTransferError =
   {
     body: null,
     code: 3,
     exception: null,
     http_status: 401,
     source: "https://mydomain.com/myfile.png";,
     target: "file:///data/user/0/com.mydomain.myapp/files/myfile.png"
   }
   ```


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

To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to