rolinger commented on issue #339:
URL: 
https://github.com/apache/cordova-plugin-file-transfer/issues/339#issuecomment-1450747708

   > > @phusting 
https://www.npmjs.com/package/cordova-plugin-ns0m-file-transfer This works!!! 
trust me!! i have just tried it
   > 
   > I get **Invalid Version: null**
   
   As @pixellet14 mentioned and posted earlier - this plugin works.  I have it 
loaded and yes, I am able to get it work (but I have only tested downloads; its 
all I need it for at the moment) with the following simply function:
   
   ```
     function DownloadFile(urlFile,newFileName,storage_location){
       var fileTransfer = new FileTransfer();
       var folderpath=storage_location+newFileName ; //The path is added here.
       var onSuccess= function(entry){
         console.log("download complete: " + entry.fullPath);
       };
   
       var onError=function(error) {
         console.log("download error source " + error.source);
         console.log("download error target " + error.target);
         console.log("upload error code " + error.code);
       };
   
       fileTransfer.download(urlFile,folderpath,onSuccess,onError);
     }  
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to