Just guessing -- it's to "catch" that error, not return it:
if err == http.RequestBodyTooLarge {
http.Error(w, "File too large", http.StatusRequestEntityTooLarge)
} else {
http.Error(w, "Oops, there was an error. Please try again later.", http.StatusInternalServerError)