Close uploaded file
This commit is contained in:
parent
afcdb97e62
commit
b9344dcf82
@ -31,6 +31,7 @@ func handleForm(res http.ResponseWriter, req *http.Request) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
tmpFile, err := os.Create(filepath.Join(os.TempDir(), header.Filename))
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user