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(core): should set type of uploaded file (#6689)
fundon0d8bab18dfee
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/request.ts b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/request.tsindex 76a76982da..7aceea6b7e 100644--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/request.ts+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/request.ts@@ -82,7 +82,9 @@ async function createSessionMessage({if (blob instanceof File) {return blob;} else {- return new File([blob], await calculateBlobHash(blob));+ return new File([blob], await calculateBlobHash(blob), {+ type: blob.type,+ });}}));