diff --git a/context.go b/context.go index 99ef03bc..3bc0bbd9 100644 --- a/context.go +++ b/context.go @@ -361,7 +361,7 @@ func (c *context) FormFile(name string) (*multipart.FileHeader, error) { if err != nil { return nil, err } - defer f.Close() + f.Close() return fh, nil }