mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-11-23 08:35:43 +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 (
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue