Problem Description:
The FORM scope doesn't display all values submitted when a post includes same named fields
AND one of those fields is type="file".
The issue occurs when these conditions are true:
* Request is a multipart/form-data POST
* Contains multiple fields with the same name
* At least 1 of those fields is a file field i.e. type="file"
* The 1st of those fields submitted is NOT type="file"
Steps to Reproduce:
1. Load the form below. Click on the two browse buttons and attach a file
2. Submit the form
Actual Result:
Although 2 identical sets of fields were submitted, the FORM scope displays less values in one field than the other. (See attached image).
fileFirst = {tempfilepath}.tmp,Lions,Tigers,Bears,Oh My
fileMiddle = {tempfilepath}.tmp,Oh My
Expected Result:
Both fields should contain the exact same values
fileFirst = {tempfilepath}.tmp,Lions,Tigers,Bears,Oh My
fileMiddle = {tempfilepath}.tmp,Lions,Tigers,Bears,Oh My
Any Workarounds:
Ensuring a file is always the first field submitted seems to yield the expected results, but that's not always possible when working with external systems or libraries.
Attachments:
Comments: