1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-27 10:35:41 +00:00

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

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