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



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