Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70850

FileSystem.WriteFile returns undefined

$
0
0

I am trying to download files using the filesystem API to my local storage, the data is converted to base64 from the back-end… From the console log I can see the base64 Data, the problem is that WriteFile returns “Undefined”. I am fairly new in programming your help will be appreciated.

this.content.downloadNative(this.file.publicId).subscribe({
    async next(base64: Base64Data){
      try{
const savedFile = await Filesystem.writeFile({

         path: base64.Name,

         data: base64.Data,

         directory: Directory.Data,

       })

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70850

Trending Articles



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