From fa9a6de272050ff19ce3c25680dfcbfcf2edbd2d Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 11 Sep 2024 11:01:47 +0800 Subject: [PATCH] 444 --- api/controller/Editor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controller/Editor.go b/api/controller/Editor.go index c01308b..613163d 100644 --- a/api/controller/Editor.go +++ b/api/controller/Editor.go @@ -82,7 +82,7 @@ func (b *Editor) EditorUpload(c *gin.Context) { fileType := "jpg" if file.Filename != "" { - fileType = utils.GetExtension(fileType) + fileType = utils.GetExtension(file.Filename) if fileType == "" { fileType = "jpg" }