MCPcopy Index your code
hub / github.com/labstack/echo / isFieldMultipartFile

Function isFieldMultipartFile

bind.go:505–516  ·  view source on GitHub ↗
(field reflect.Type)

Source from the content-addressed store, hash-verified

503)
504
505func isFieldMultipartFile(field reflect.Type) (bool, error) {
506 switch field {
507 case multipartFileHeaderPointerType,
508 multipartFileHeaderSliceType,
509 multipartFileHeaderPointerSliceType:
510 return true, nil
511 case multipartFileHeaderType:
512 return true, errors.New("binding to multipart.FileHeader struct is not supported, use pointer to struct")
513 default:
514 return false, nil
515 }
516}
517
518func setMultipartFileHeaderTypes(structField reflect.Value, inputFieldName string, files map[string][]*multipart.FileHeader) bool {
519 fileHeaders := files[inputFieldName]

Callers 1

bindDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…