Merge d62987ea57b997f067b1ab4c3083b4c30fb15973 into 077a2f39c85700ba0823f85ed29cec0c8f2cbdfc

This commit is contained in:
Alireza_Ta 2025-08-20 02:15:45 +08:00 committed by GitHub
commit 9a66948c2b
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 {