Answer the question
In order to leave comments, you need to log in
How to find out the number of attached files in go?
I submit a form to the server to which I attach image files.
Initially, the number of pictures is not known.
The form looks like this
If the user has added several photos, it will
<input type="file" name="file_1">
<input type="file" name="file_2">
`file, _, err := r.FormFile("file_1")`
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question