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 extension
Ammar Ahmed1b13da54a133
diff --git a/apps/mobile/app/screens/editor/tiptap/picker.ts b/apps/mobile/app/screens/editor/tiptap/picker.tsindex 4cc44b616..6aabf8764 100644--- a/apps/mobile/app/screens/editor/tiptap/picker.ts+++ b/apps/mobile/app/screens/editor/tiptap/picker.ts@@ -303,10 +303,15 @@ const handleImageResponse = async (type: "url"});- const fileName = image.sourceURL+ let fileName = image.sourceURL? basename(image.sourceURL): image.filename || "image";+ fileName =+ image.mime === "image/jpeg"+ ? fileName.replace(/HEIC|HEIF/, "jpeg")+ : fileName;+console.log("attaching image...", fileName);console.log("attaching file...");