I'm using http.ParseMultipartForm
to handle file uploads at my webapp.
Documentation says:
ParseMultipartForm parses a request body as multipart/form-data. The whole request body is parsed and up to a total of maxMemory bytes of its file parts are stored in memory, with the remainder stored on disk in temporary files. ParseMultipartForm calls ParseForm if necessary. After one call to ParseMultipartForm, subsequent calls have no effect.
When the memory and/or temporary file will be deleted?