I´m building a web app that allows users to upload files < 5MB, and for this I´m using Request.ParseMultipartForm(5000000), but I´m wondering what happens if a funny guy tries to upload a file bigger than 5MB, documentation is not clear enough https://golang.org/pkg/net/http/#Request.ParseMultipartForm
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
So, how long "temporary files" really means? because it´s a little ambiguous, does that mean that remaining file will be erase after the handler function returns? or does mean that has a lifetime determined? I wouldn´t want my app to crash if some guys try to do this and I run out of disk space.