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
web: remove leading "/" in zip filenames
Abdullah Attab8181c4a1b9d
diff --git a/apps/web/src/utils/streams/attachment-stream.ts b/apps/web/src/utils/streams/attachment-stream.tsindex 98fbdff47..3458ebfbe 100644--- a/apps/web/src/utils/streams/attachment-stream.ts+++ b/apps/web/src/utils/streams/attachment-stream.ts@@ -63,7 +63,7 @@ export class AttachmentStream extends ReadableStream<ZipFile> {});if (file) {- const filePath = `/${attachment.metadata.filename}`;+ const filePath = attachment.metadata.filename;controller.enqueue({path: filePath,data: new Uint8Array(await file.arrayBuffer())diff --git a/apps/web/src/utils/streams/zip-stream.ts b/apps/web/src/utils/streams/zip-stream.tsindex 16a8d0d45..bdc3df478 100644--- a/apps/web/src/utils/streams/zip-stream.ts+++ b/apps/web/src/utils/streams/zip-stream.ts@@ -41,6 +41,7 @@ export class ZipStream extends TransformStream<ZipFile, Uint8Array> {},flush() {zipper.end();+ zipper.terminate();}});}