There was an error while loading. Please reload this page.
1 parent 513aadb commit 03d27d6Copy full SHA for 03d27d6
1 file changed
kernel/api/extension.go
@@ -142,8 +142,8 @@ func extensionCopy(c *gin.Context) {
142
143
fName = util.FilterUploadFileName(fName)
144
ext := util.Ext(fName)
145
- if "" == ext || strings.Contains(ext, "!") {
146
- // 改进浏览器剪藏扩展转换本地图片后缀 https://github.com/siyuan-note/siyuan/issues/7467
+ if !util.IsCommonExt(ext) || strings.Contains(ext, "!") {
+ // 改进浏览器剪藏扩展转换本地图片后缀 https://github.com/siyuan-note/siyuan/issues/7467 https://github.com/siyuan-note/siyuan/issues/15320
147
if mtype := mimetype.Detect(data); nil != mtype {
148
ext = mtype.Extension()
149
fName += ext
0 commit comments