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
fix: remove file attachments after upload
thecodrr36121bba6450
diff --git a/apps/web/src/interfaces/fs.js b/apps/web/src/interfaces/fs.jsindex 1d55208a3..13b193e94 100644--- a/apps/web/src/interfaces/fs.js+++ b/apps/web/src/interfaces/fs.js@@ -248,7 +248,10 @@ async function uploadFile(filename, requestOptions) {throw new Error("Could not complete multi-part upload.");await fileHandle.addAdditionalData("uploaded", true);-+ // Keep the images cached; delete everything else.+ if (!fileHandle.file.type?.startsWith("image/")) {+ await streamablefs.deleteFile(filename);+ }return true;}