1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-23 16:45:39 +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

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