修复图片上传的问题

master
a7458969 2020-05-24 14:27:39 +08:00
parent a0655f401b
commit 592d2fd90e
1 changed files with 1 additions and 1 deletions

View File

@ -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