thx. I'll check it. On Saturday, July 18, 2020 at 12:03:52 AM UTC+8, Jake Montgomery wrote: > > On Thursday, July 16, 2020 at 10:32:32 PM UTC-4, hao dong wrote: >> >> thanks. I've noticed the code,too. And that's what I'm confused: when >> there is a create, there is no delete, and I can not find the file under >> os.TemDir() >> Seems I have to debug the code to find the removing line. >> > > I believe the delete happens at the end of finishRequest: > https://golang.org/src/net/http/server.go#L1612 > > if w.req.MultipartForm != nil { > > w.req.MultipartForm.RemoveAll() > > } > > > Not verified, but that looks like it. > >>
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0905a00b-9919-43b6-8e5d-f325fab3d782o%40googlegroups.com.