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/92207273-e6e2-4f31-81bd-691ffe7c7c25o%40googlegroups.com.

Reply via email to