Hi Developers.
I have a problem when downloading a file from a URL with FileTransfer Plugin
I get the error (code: 3) and (http_status:401)
I’m using Ionic 5 Capacitor, Hope to find any solutions
Best Wishes
const url = 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf';
this.fileTransfer.download(url, this.file.dataDirectory + 'file.pdf').then((entry) => {
console.log('download complete: ' + entry.toURL());
}, (error) => {
// handle error
console.log('An rrror occurred: ' + error);
});
1 post - 1 participant