oinume journal

Scratchpad of what I learned

Entries from 2017-12-19 to 1 day

Handling uploaded files in Go

Go

Handling uploaded files in Go is quite easy. Here is a complete example. net/http.Request.ParseMultipartForm parses a request body as multipart/form-data. You can get files with net/http.Request.FormFile after calling the method net/http.R…