mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 10:14:21 +01:00
🎨 Normalize filenames when Convert network images to local images Fix https://github.com/siyuan-note/siyuan/issues/7992
This commit is contained in:
parent
45adb272a7
commit
8fda6730a7
1 changed files with 2 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ func NetImg2LocalAssets(rootID, originalURL string) (err error) {
|
|||
}
|
||||
|
||||
name := filepath.Base(u)
|
||||
name = util.FilterFileName(name)
|
||||
name = util.TruncateLenFileName(name)
|
||||
name = "net-img-" + name
|
||||
name = util.AssetName(name)
|
||||
writePath := filepath.Join(assetsDirPath, name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue