mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
fix: close form file (#2416)
Signed-off-by: guangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
c2238c71b8
commit
b904793278
|
@ -364,6 +364,7 @@ func (u *Uploader) AddFile(key, filename string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer source.Close()
|
||||||
|
|
||||||
return u.AddFileSource(key, filename, source)
|
return u.AddFileSource(key, filename, source)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user