feature upload remove all temp file
This commit is contained in:
parent
109361078d
commit
df32e9e2a8
@ -693,6 +693,11 @@ func (c *Controller) SaveToFileWithBuffer(fromFile string, toFile string, buf []
|
|||||||
defer dst.Close()
|
defer dst.Close()
|
||||||
|
|
||||||
_, err = io.CopyBuffer(onlyWriter{dst}, src, buf)
|
_, err = io.CopyBuffer(onlyWriter{dst}, src, buf)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = c.Ctx.Request.MultipartForm.RemoveAll()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user