A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix image upload broken on ios
ammarahm-ed75191afc3e8a
diff --git a/apps/mobile/app/screens/editor/tiptap/picker.js b/apps/mobile/app/screens/editor/tiptap/picker.jsindex 757dc8427..444c81764 100644--- a/apps/mobile/app/screens/editor/tiptap/picker.js+++ b/apps/mobile/app/screens/editor/tiptap/picker.js@@ -248,9 +248,13 @@ const handleImageResponse = async (response, options) => {const isPng = /(png)/g.test(image.type);const isJpeg = /(jpeg|jpg)/g.test(image.type);if (isPng || isJpeg) {+ console.log(image.uri);b64 =`data:${image.type};base64, ` +- (await compressToBase64(image.uri, isPng ? "PNG" : "JPEG"));+ (await compressToBase64(+ Platform.OS === "ios" ? "file://" + image.uri : image.uri,+ isPng ? "PNG" : "JPEG"+ ));}if (Platform.OS === "ios") await RNFetchBlob.fs.unlink(uri);