mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 09:40:56 +00:00
fix #1221
This commit is contained in:
parent
8f7246e17b
commit
f7f390dfec
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user