There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(workspace): cloud workspace blob uploading
himself65023cbc30ea41
diff --git a/packages/workspace/src/blob/index.ts b/packages/workspace/src/blob/index.tsindex 4824ce3c8a..d6589437e7 100644--- a/packages/workspace/src/blob/index.ts+++ b/packages/workspace/src/blob/index.ts@@ -55,13 +55,14 @@ export const createAffineBlobStorage = (},set: async (key, value) => {const db = await dbPromise;+ const arrayBuffer = await value.arrayBuffer();const t = db.transaction('uploading', 'readwrite').objectStore('uploading');let uploaded = false;t.put({key,- arrayBuffer: await value.arrayBuffer(),+ arrayBuffer,type: value.type,}).then(() => {// delete the uploading blob after uploaded