1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 14:40:57 +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) { 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 { if ok {
return files, nil return files, nil
} }