fix: temp file not close and incorrect WebPutAsTask

This commit is contained in:
Andy Hsu
2023-08-28 18:18:02 +08:00
parent 6c4736fc8f
commit ce10c9f120
2 changed files with 6 additions and 3 deletions

View File

@ -111,7 +111,7 @@ func FsForm(c *gin.Context) {
},
Reader: f,
Mimetype: file.Header.Get("Content-Type"),
WebPutAsTask: false,
WebPutAsTask: asTask,
}
ss, err := stream.NewSeekableStream(s, nil)
if err != nil {