Hi, I’m trying to implement the ‘File transfer’ plugin. It is returning full download but I can’t see the file in any folder. This is the json response:
download complete: {
"isFile":true,
"isDirectory":false,
"name":"testfile.pdf",
"fullPath":"/testfile.pdf",
"filesystem":"<FileSystem: files>",
"nativeURL":"file:///data/user/0/co.app/files/testfile.pdf"
}
This is my code.
download() {
const url = 'urlserver/testfile.pdf';
const fileTransfer: FileTransferObject = this.transfer.create();
fileTransfer.download(url, this.file.dataDirectory + 'testfile.pdf').then((entry) => {
console.log('download complete: ' + JSON.stringify(entry));
}, (error) => {
// handle error
console.log('errr');
});
}