From 5d263755b0c20d0fe0850a3825333922e1a27dde Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 17 Jun 2025 11:19:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E5=AD=97=E6=AE=B5=E5=90=8D?= =?UTF-8?q?=E4=B8=BAfileName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/common/controller/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/common/controller/file.go b/src/modules/common/controller/file.go index eb57202a..fc10e6e6 100644 --- a/src/modules/common/controller/file.go +++ b/src/modules/common/controller/file.go @@ -490,7 +490,7 @@ func (s *FileController) Upload2(c *gin.Context) { newFileName := upFilePath[strings.LastIndex(upFilePath, "/")+1:] c.JSON(200, result.OkData(map[string]string{ "url": "//" + c.Request.Host + upFilePath, - "filePath": upFilePath, + "fileName": upFilePath, "newFileName": newFileName, "originalFileName": formFile.Filename, })) @@ -575,7 +575,7 @@ func (s *FileController) ChunkMerge2(c *gin.Context) { newFileName := mergeFilePath[strings.LastIndex(mergeFilePath, "/")+1:] c.JSON(200, result.OkData(map[string]string{ "url": "//" + c.Request.Host + mergeFilePath, - "filePath": mergeFilePath, + "fileName": mergeFilePath, "newFileName": newFileName, "originalFileName": body.FileName, }))