From f7f390dfecc5d2c37e5457e9789b8962c78a4403 Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 16 Jun 2015 14:53:38 +0800 Subject: [PATCH] fix #1221 --- controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.go b/controller.go index 9011593a..a8b9e8d3 100644 --- a/controller.go +++ b/controller.go @@ -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 }