Closed zamn closed 9 years ago
I was able to resolve this by changing the form to:
<form action="http://localhost:8080/metrics" method="POST" enctype="multipart/form-data">
After taking a look in RequestContext.java, I saw that the file upload was not being identified as multipart. I then took a look at the request itself and it was not sending as multipart, which is why this array only contained the parameters of the multi upload but not the FileItems.
When using the following form:
<form action="http://localhost:8080/metrics" method="POST">
<input type="file" name="upload" id="upload" multiple>
<input type="submit" value="Submit">
</form>
I try to submit a POST request with two files to my binding:
And the output files in the array are null.