Go keeps any uploaded file over 32 MB in a temporary file while the handler reads it. The server only deletes that file for the original request, but the media and theme upload handlers receive a copy of the request made by the router and middleware, so the file is never deleted. Every media upload between 32 MB and the 128 MB cap, and every theme archive over 32 MB, leaves a file the size of the upload in the temporary folder until the host clears it. The same happens when an upload names the wrong form field. Both handlers should remove the form's temporary files once they are done with the request.
Go keeps any uploaded file over 32 MB in a temporary file while the handler reads it. The server only deletes that file for the original request, but the media and theme upload handlers receive a copy of the request made by the router and middleware, so the file is never deleted. Every media upload between 32 MB and the 128 MB cap, and every theme archive over 32 MB, leaves a file the size of the upload in the temporary folder until the host clears it. The same happens when an upload names the wrong form field. Both handlers should remove the form's temporary files once they are done with the request.