Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Capicator FileTransfer Can't Download File (Code:3, http_statu:401)

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>