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: Force download exported files https://github.com/siyuan-note/siyuan/pull/16796
Danielff72ff1f2754
diff --git a/kernel/server/serve.go b/kernel/server/serve.goindex ed1f6c7e76..7da000b207 100644--- a/kernel/server/serve.go+++ b/kernel/server/serve.go@@ -269,6 +269,11 @@ func serveExport(ginServer *gin.Engine) {// 应下载而不是查看导出的文件exportGroup.GET("/*filepath", func(c *gin.Context) {+ if strings.HasPrefix(c.Request.URL.Path, "/export/temp/") {+ c.File(filepath.Join(util.TempDir, c.Request.URL.Path))+ return+ }+filePath := strings.TrimPrefix(c.Request.URL.Path, "/export/")decodedPath, err := url.PathUnescape(filePath)