Skip to content

Commit

Permalink
feat(form): use itoa for state value
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Oct 19, 2023
1 parent 224b43f commit 3f6edbc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions core/form/form_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ var (
)

const (
Initialized int = 0
Prepared = 1
Submitted = 2
Validated = 3
Processed = 4
Initialized = iota
Prepared
Submitted
Validated
Processed
)

func Process(form *Form, request *http.Request) error {

if err := PrepareForm(form); err != nil {
return err
}
Expand All @@ -47,7 +46,7 @@ func Process(form *Form, request *http.Request) error {
}

if form.EncType == ENC_TYPE_MULTIPART {
if err := request.ParseMultipartForm(32 << 20); err != nil {
if err := request.ParseMultipartForm(32 << 24); err != nil {
return err
}
}
Expand Down

0 comments on commit 3f6edbc

Please sign in to comment.