weversong2 opened a new issue, #550:
URL: https://github.com/apache/cordova-plugin-file/issues/550

   I've been using cordova-plugin-file for a while now and it's always worked 
perfectly.
   
   But now with the update to SDK Minimum 31, it doesn't work as expected.
   
   I use the following function to download:
   `                 
window.cordova.plugin.ftp.download(externalDataDirectory.toURL() + 
'einstein_sales.db', '/EINSTEIN_SALES/' + returnUSER.sf_company_name + '/' + 
returnUSER.sf_key + '/' + localStorage.getItem('bkpRESTORE ') + '', function 
(percent) {
                        if (percent == 1) {
                            $("#progres_bar_bkp_restore_ftp").html("<h4 
style='color: blue;text-align: center'>Download/Restore Completed 
Successfully!</br>Wait for the app to restart...</h4> ");
                            setTimeout(function() {
                                window.location.href = "home.html";
                            }, 3000);
                            ftpDISCONNECT();
                        } else {
                            $("#progres_bar_bkp_restore_ftp").html(`<div 
class="progress progress-sm active">
                                                            <div 
class="progress-bar progress-bar-success progress-bar-striped" 
role="progressbar" aria-valuenow="${percent * 100}" aria-valuemin="0" 
aria-valuemax="100" style="width: ${percent * 100}%">
                                                              <span 
class="sr-only">${percent * 100}% Complete</span>
                                                            </div>
                                                          </div>`);
                        🇧🇷
                    }, function(error) {
                        $("#progres_bar_bkp_restore_ftp").html("<h4 
style='color: red;text-align: center'>Error Downloading BKP: " + error + 
"</h4>");
                        ftpDISCONNECT();`
                    
   
   I get following error:
   `https://localhost:/__cdvfile_files-external__/einstein_sales.db: open 
failed: ENOENT (No such file or directory);
   ![WhatsApp Image 2022-12-20 at 11 57 
38](https://user-images.githubusercontent.com/18507991/208710200-0c81b774-61f3-4a37-898a-080cd0cff68b.jpeg)
   ![Captura de tela 2022-12-20 
115944](https://user-images.githubusercontent.com/18507991/208710914-2a7bd7a6-46b2-4961-b04d-72a506b62eee.png)
   ![WhatsApp Image 2022-12-20 at 12 00 
46](https://user-images.githubusercontent.com/18507991/208710938-5ad264e3-e7a9-4567-ade9-982fce771335.jpeg)
   `
   
   the application has the necessary permissions and the file is in the source 
folder.


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