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, }))