Fix some UI things.

This commit is contained in:
zicla
2018-12-07 19:33:18 +08:00
parent f4d9bbb746
commit cbfa8a7110
12 changed files with 25 additions and 17 deletions

View File

@ -267,7 +267,9 @@ func (this *MatterController) Upload(writer http.ResponseWriter, request *http.R
privacy = true
}
request.ParseMultipartForm(32 << 20)
err := request.ParseMultipartForm(32 << 20)
this.PanicError(err)
file, handler, err := request.FormFile("file")
this.PanicError(err)
defer file.Close()