🐛 API /asset/upload
使用子文件夹时返回结果不正确 https://github.com/siyuan-note/siyuan/issues/7454
This commit is contained in:
parent
9916fe7f65
commit
81fa346073
1 changed files with 1 additions and 1 deletions
|
@ -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), "/")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue