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:
parent
9cc9b88d26
commit
5ed865d2e4
1 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,8 @@ 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
|
||||||
|
|
Loading…
Reference in a new issue