I’m retrieving vales from parameters in a multipart/form –data.
There is no problem when a parameter has only one value, but when a parameter has more than one value I 'm only able to get the first value.
There is no problem in retrieving neither the file nor the form data, but when a form parameter comes with more than one value for example:
<input type="hidden" name="param1" value="A">
<input type="hidden" name="param1" value="B">
Anil Kumar Goud wrote:The form data fields must contain unique names, or else when you access form data values you will get only top level values.
That is not correct. It is perfectly valid for form to contain multiple elements with the same name, and all are submitted to the server. How the values are obtained is a matter of how the library being used parses the request body.