fix(backend-http):increased size for the ios image edp
This commit is contained in:
parent
9734564da2
commit
883019433a
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ func iosImagesUploadHandler(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
r.Body = http.MaxBytesReader(w, r.Body, FILES_SIZE_LIMIT)
|
||||
// defer r.Body.Close()
|
||||
err = r.ParseMultipartForm(1e5) // 100Kb
|
||||
err = r.ParseMultipartForm(1e6) // ~1Mb
|
||||
if err == http.ErrNotMultipart || err == http.ErrMissingBoundary {
|
||||
responseWithError(w, http.StatusUnsupportedMediaType, err)
|
||||
// } else if err == multipart.ErrMessageTooLarge // if non-files part exceeds 10 MB
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue