mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 22:38:49 +01:00
🎨 插入资源文件时文件名长度最大限制 189 字节 https://github.com/siyuan-note/siyuan/issues/7099
This commit is contained in:
parent
5734548f78
commit
ce2fadac6a
2 changed files with 5 additions and 3 deletions
|
|
@ -176,7 +176,7 @@ func NetImg2LocalAssets(rootID string) (err error) {
|
|||
}
|
||||
}
|
||||
name = strings.TrimSuffix(name, ext)
|
||||
name = gulu.Str.SubStr(name, 64)
|
||||
name = gulu.Str.SubStr(name, 63) // 插入资源文件时文件名长度最大限制 189 字节 https://github.com/siyuan-note/siyuan/issues/7099
|
||||
name = util.FilterFileName(name)
|
||||
name = "net-img-" + name + "-" + ast.NewNodeID() + ext
|
||||
writePath := filepath.Join(assetsDirPath, name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue