diff --git a/controller/file.go b/controller/file.go index 9fe9e9d..a64c32f 100644 --- a/controller/file.go +++ b/controller/file.go @@ -25,7 +25,7 @@ func (this *FileController) OnUpload(c *gin.Context) { return } - file, _, err := c.Request.FormFile("file") + file, _, err := c.Request.FormFile("image") if nil != err || nil == file{ log.Print(err.Error()) return