mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 12:12:12 +08:00
Merge d62987ea57b997f067b1ab4c3083b4c30fb15973 into 077a2f39c85700ba0823f85ed29cec0c8f2cbdfc
This commit is contained in:
commit
9a66948c2b
@ -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