🐛 API /asset/upload 使用子文件夹时返回结果不正确 https://github.com/siyuan-note/siyuan/issues/7454

This commit is contained in:
Liang Ding 2023-03-07 09:14:51 +08:00
parent 9916fe7f65
commit 81fa346073
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -189,7 +189,7 @@ func Upload(c *gin.Context) {
break
}
f.Close()
succMap[baseName] = path.Join(relAssetsDirPath, fName)
succMap[baseName] = strings.TrimPrefix(path.Join(relAssetsDirPath, fName), "/")
}
}