1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 18:10:48 +00:00
This commit is contained in:
astaxie 2015-06-16 14:53:38 +08:00
parent 8f7246e17b
commit f7f390dfec

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
}