This commit is contained in:
astaxie 2015-06-16 14:53:38 +08:00
parent 8f7246e17b
commit f7f390dfec
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ func (c *Controller) GetFile(key string) (multipart.File, *multipart.FileHeader,
// }
// }
func (c *Controller) GetFiles(key string) ([]*multipart.FileHeader, error) {
files, ok := c.Ctx.Request.MultipartForm.File["key"]
files, ok := c.Ctx.Request.MultipartForm.File[key]
if ok {
return files, nil
}