Commit f7f390df authored by astaxie's avatar astaxie

fix #1221

parent 8f7246e1
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment