Fixes multipart integration
This commit is contained in:
		| @ -9,13 +9,14 @@ import "net/http" | ||||
| type formBinding struct{} | ||||
|  | ||||
| func (_ formBinding) Name() string { | ||||
| 	return "query" | ||||
| 	return "form" | ||||
| } | ||||
|  | ||||
| func (_ formBinding) Bind(req *http.Request, obj interface{}) error { | ||||
| 	if err := req.ParseForm(); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	req.ParseMultipartForm(32 << 10) // 32 MB | ||||
| 	if err := mapForm(obj, req.Form); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user