Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/10666

Vanessab9b14365728f
diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts
index f3b2d1204f..33c3c841b6 100644
--- a/app/src/asset/anno.ts
+++ b/app/src/asset/anno.ts
@@ -719,6 +719,7 @@ const copyAnno = (idPath: string, fileName: string, pdf: any) => {
const formData = new FormData();
const imageName = content + ".png";
formData.append("file[]", blob, imageName);
+ formData.append("skipIfDuplicated", "true");
fetchPost(Constants.UPLOAD_ADDRESS, formData, (response) => {
writeText(`<<${idPath} "${content}">>
![](${response.data.succMap[imageName]})`);