-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
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
how to binding for multi files upload #1878
Comments
I have same issues, my form has two file fields, and one of it is file array, like following:
it only works as following:
as a workaround, just get file array like this:
Wish gin can fix it. |
when we need to use
|
limit the file form key name is not a good idea。if you declare only file1 and file2, how to deal file3, file4 ? |
@wuhuizuo I known, |
…onic#1949) * binding: add support of multipart multi files (gin-gonic#1878) * update readme: add multipart file binding
You must use something. Like that |
Why it should be "-" for binding? cant we use "required" for files? |
how do I read in this case :type MasterTemplate struct { |
#1263's merged solution take no effect for multi files uploading.
my code:
request send command by curl:
my error:
Key: 'MailUpload.Attachments' Error:Field validation for 'Attachments' failed on the 'required' tag
The text was updated successfully, but these errors were encountered: