setting variable for form parsing byte buffer

This commit is contained in:
Vincent Batts 2013-10-09 16:00:20 -04:00
parent 9cc9b88d26
commit 5ed865d2e4
1 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,8 @@ import (
)
var (
defaultPageLimit int = 25
defaultPageLimit int = 25
maxBytes int64 = 1024 * 512
serverConfig config.Config
du dbutil.Util
)
@ -710,7 +711,7 @@ func routeUpload(w http.ResponseWriter, r *http.Request) {
}
// handle the form posting to this route
err := r.ParseMultipartForm(1024 * 5)
err := r.ParseMultipartForm(maxBytes)
if err != nil {
serverErr(w, r, err)
return