An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve upload asset to cloud error message
Danielfe9ffed02513
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex e9a8721829..aa864df720 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -1501,6 +1501,7 @@"243": "Only list the first [%d] tags (including subtags), if you need to adjust, please modify [Settings - Doc Tree - Maximum number to list]","244": "It did not exit normally after the last use. It is recommended to execute [Doc Tree - Rebuild Index]. In the future, please exit the program completely before shutting down the computer","245": "It did not exit normally after the last use. It is recommended to execute [Doc Tree - Rebuild Index]. In the future, please use [Exit Application] in the right panel to exit normally",- "246": "The document title cannot contain / and has been replaced with _"+ "246": "The document title cannot contain / and has been replaced with _",+ "247": "File [%s] is larger than the maximum limit [%s], and has been ignored for uploading to the cloud"}}diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex eb4575ed4e..c277fa6cfd 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -1501,6 +1501,7 @@"243": "Enumere solo las primeras [%d] etiquetas (incluidas las subetiquetas), modifique [Configuración - Árbol de documentos - Número máximo a listar]","244": "No salió normalmente después del último uso. Se recomienda ejecutar [Árbol de documentos - Reconstruir índice]. En el futuro, salga del programa por completo antes de apagar la computadora","245": "No salió normalmente después del último uso. Se recomienda ejecutar [Árbol de documentos - Reconstruir índice]. En el futuro, utilice [Salir de la aplicación] en el panel derecho para salir normalmente",- "246": "El título del documento no puede contener / y ha sido reemplazado por _"+ "246": "El título del documento no puede contener / y ha sido reemplazado por _",+ "247": "El archivo [%s] es más grande que el límite máximo [%s] y se ha ignorado para cargarlo en la nube"}}diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex 20b5f6d2f3..b963e8f397 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -1501,6 +1501,7 @@"243": "Répertorier uniquement les [%d] premières balises (y compris les sous-balises). veuillez modifier [Paramètres - Arbre des documents - Nombre maximum de documents à lister].","244": "Il ne s'est pas terminé normalement après la dernière utilisation. Il est recommandé d'exécuter [Doc Tree - Reconstruire l'index]. À l'avenir, veuillez quitter complètement le programme avant d'éteindre l'ordinateur","245": "Il ne s'est pas terminé normalement après la dernière utilisation. Il est recommandé d'exécuter [Doc Tree - Reconstruire l'index]. À l'avenir, veuillez utiliser [Quitter l'application] dans le panneau de droite pour quitter normalement",- "246": "Le titre du document ne peut pas contenir / et a été remplacé par _"+ "246": "Le titre du document ne peut pas contenir / et a été remplacé par _",+ "247": "Le fichier [%s] est plus grand que la limite maximale [%s] et a été ignoré pour le téléchargement vers le cloud"}}diff --git a/app/appearance/langs/ja_JP.json b/app/appearance/langs/ja_JP.jsonindex ac56ff5067..9085a7452c 100644--- a/app/appearance/langs/ja_JP.json+++ b/app/appearance/langs/ja_JP.json@@ -1501,6 +1501,7 @@"243": "最初の [%d] 個のタグ (サブタグを含む) のみを表示します。調整が必要な場合は [設定] - [ドキュメントツリー] - [リストする最大数] を変更してください","244": "前回の使用後に正常に終了しませんでした。[ドキュメントツリー] - [インデックスの再構築] を実行することをお勧めします。今後はコンピュータをシャットダウンする前にプログラムを完全に終了してください","245": "前回の使用後に正常に終了しませんでした。[ドキュメントツリー] - [インデックスの再構築] を実行することをお勧めします。今後は右パネルの [アプリケーションの終了] を使用して終了してください",- "246": "ドキュメントのタイトルに / を含めることはできません。_ に置き換えられました"+ "246": "ドキュメントのタイトルに / を含めることはできません。_ に置き換えられました",+ "247": "ファイル [%s] は最大制限 [%s] を超えているため、クラウドへのアップロードは無視されました。"}}diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex bb81e27321..c9f0feeeb2 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -1501,6 +1501,7 @@"243": "僅列出前 [%d] 個標籤(含子標籤),如需調整請修改 [設置 - 文檔樹 - 最大列出數量]","244": "上次使用後未正常退出,建議執行一次 [文檔樹 - 重建索引]。以後請完整退出程式後再關閉電腦","245": "上次使用後未正常退出,建議執行一次 [文檔樹 - 重建索引]。以後請使用右側欄面板中的 [退出應用] 進行正常退出",- "246": "文件標題不能包含 /,已經使用 _ 替換"+ "246": "文件標題不能包含 /,已經使用 _ 替換",+ "247": "檔案 [%s] 大於最大限制 [%s],已忽略上傳至社群圖床"}}diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex 176b1851c6..09e3e75e05 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -1501,6 +1501,7 @@"243": "仅列出前 [%d] 个标签(含子标签),如需调整请修改 [设置 - 文档树 - 最大列出数量]","244": "上次使用后未正常退出,建议执行一次 [文档树 - 重建索引]。以后请完整退出程序后再关闭电脑","245": "上次使用后未正常退出,建议执行一次 [文档树 - 重建索引]。以后请使用右侧栏面板中的 [退出应用] 进行正常退出",- "246": "文档标题不能包含 /,已经使用 _ 替换"+ "246": "文档标题不能包含 /,已经使用 _ 替换",+ "247": "文件 [%s] 大于最大限制 [%s],已忽略上传到社区图床"}}diff --git a/kernel/model/assets.go b/kernel/model/assets.goindex a9479fbf24..254cbb6345 100644--- a/kernel/model/assets.go+++ b/kernel/model/assets.go@@ -616,7 +616,9 @@ func uploadAssets2Cloud(assetPaths []string, bizType string) (err error) {}if limitSize < uint64(fi.Size()) {- logging.LogWarnf("file [%s] larger than limit size [%s], ignore uploading it", humanize.IBytes(limitSize), absAsset)+ logging.LogWarnf("file [%s] larger than limit size [%s], ignore uploading it", absAsset, humanize.IBytes(limitSize))+ msg := fmt.Sprintf(Conf.Language(247), filepath.Base(absAsset), humanize.IBytes(limitSize))+ util.PushErrMsg(msg, 30000)continue}