capacitor file code example
Example: capacitor base64 to file
try {
Filesystem.writeFile({
path: `test1/${fileTo.name}`,
data: base64String,
directory: FilesystemDirectory.Documents
});
} catch (e) {
console.error("Unable to write file", e);
}