mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-06 03:57:46 +08:00
Merge d62987ea57b997f067b1ab4c3083b4c30fb15973 into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d
This commit is contained in:
commit
09edd213e4
@ -273,6 +273,11 @@ func setByForm(value reflect.Value, field reflect.StructField, form map[string][
|
||||
}
|
||||
|
||||
return true, setArray(vs, value, field)
|
||||
case reflect.Struct:
|
||||
if _, ok := value.Interface().(multipart.FileHeader); ok && value.IsZero() {
|
||||
return false, nil
|
||||
}
|
||||
fallthrough
|
||||
default:
|
||||
var val string
|
||||
if !ok {
|
||||
|
Loading…
x
Reference in New Issue
Block a user