🎨 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
Reference in a new issue