Added support multipart/form-data #109
This commit is contained in:
committed by
Javier Provecho Fernandez
parent
0f46ae2b81
commit
0fb7bed1c0
@@ -295,6 +295,8 @@ func (c *Context) Bind(obj interface{}) bool {
|
||||
switch {
|
||||
case c.Request.Method == "GET" || ctype == MIMEPOSTForm:
|
||||
b = binding.Form
|
||||
case ctype == MIMEMultipartPOSTForm:
|
||||
b = binding.MultipartForm
|
||||
case ctype == MIMEJSON:
|
||||
b = binding.JSON
|
||||
case ctype == MIMEXML || ctype == MIMEXML2:
|
||||
|
||||
Reference in New Issue
Block a user