Merge d62987ea57b997f067b1ab4c3083b4c30fb15973 into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d

This commit is contained in:
Alireza_Ta 2025-03-23 08:32:03 +08:00 committed by GitHub
commit 09edd213e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -273,6 +273,11 @@ func setByForm(value reflect.Value, field reflect.StructField, form map[string][
} }
return true, setArray(vs, value, field) return true, setArray(vs, value, field)
case reflect.Struct:
if _, ok := value.Interface().(multipart.FileHeader); ok && value.IsZero() {
return false, nil
}
fallthrough
default: default:
var val string var val string
if !ok { if !ok {