You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using go v1.9.2 and gin v1.2. Is there any way to bind file data with form and check if it is exist. Or, form's file can only be retrieved by c.fromfile()
Here is the form struct:
// Binding from Form
type PhoptUploadForm struct {
imgData *multipart.FileHeader `form:"img_data" binding:"required"`
ProjectID string `form:"project_id" binding:"required"`
Description string `form:"description binding:"required"`
}
Hi,
I'm currently using go v1.9.2 and gin v1.2. Is there any way to bind file data with form and check if it is exist. Or, form's file can only be retrieved by
c.fromfile()
Here is the form struct:
and the request body:
The text was updated successfully, but these errors were encountered: