diff --git a/context.go b/context.go index 0507f139..8ba98477 100644 --- a/context.go +++ b/context.go @@ -365,7 +365,7 @@ func (c *context) FormFile(name string) (*multipart.FileHeader, error) { if err != nil { return nil, err } - defer f.Close() + f.Close() return fh, nil }