Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix incorrect file uri after download on ios

ammarahm-ed1f748a82287f
diff --git a/apps/mobile/src/utils/filesystem.js b/apps/mobile/src/utils/filesystem.js
index 43a153389..5c321d9e0 100644
--- a/apps/mobile/src/utils/filesystem.js
+++ b/apps/mobile/src/utils/filesystem.js
@@ -224,7 +224,7 @@ async function downloadAttachment(hash, global = true) {
);
if (Platform.OS === 'ios') {
- fileUri = folder.uri + `/${attachment.metadata.hash}`;
+ fileUri = folder.uri + `/${attachment.metadata.filename}`;
}
console.log('saved file uri: ', fileUri);