We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type UpdateUserOperatorReq struct { File *multipart.FileHeader `form:"file"` UID *string `form:"uid" json:"uid"` } ... req := &UpdateUserOperatorReq{} if err := c.ShouldBind(req); err != nil { c.JSON(status, "") return } logger(req.File) // <nil>
I follow the example, but still getting nil. Please help fix this bug
The text was updated successfully, but these errors were encountered:
please see https://github.com/gin-gonic/examples/tree/master/file-binding and you need to use gin master branch.
master
Sorry, something went wrong.
I Update my gin go get -u github.com/gin-gonic/gin Also cant use.
go get -u github.com/gin-gonic/gin
Build failed build github.com/xxxxxxx: cannot load github.com/ugorji/go/codec: ambiguous import: found github.com/ugorji/go/codec in multiple modules: github.com/ugorji/go v1.1.4 (/go/pkg/mod/github.com/ugorji/[email protected]/codec) github.com/ugorji/go/codec v0.0.0-20190204201341-e444a5086c43 (/go/pkg/mod/github.com/ugorji/go/[email protected])
Fixed! Follow #1673 Guide
No branches or pull requests
I follow the example, but still getting nil. Please help fix this bug
The text was updated successfully, but these errors were encountered: