tracker issue : CF-4204102

select a category, or use search below
(searches all categories and all time range)
Title:

sameformfieldsasarray setting does not work with enctype="multipart/form-data" POST

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): N T. / ()

Created: 03/16/2019

Components: Language, General

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: N/A /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 7

Vote Count: 0

The application setting "sameformfieldsasarray" does not work with either:

* Method=POST enctype="multipart/form-data" 
* Method=GET

Steps to Reproduce:
Load the html code below and submit the two forms.
<h4>Method=GET</h4>
<form method="GET">
	<input type="text" name="fruit" value="Apple">
	<input type="text" name="fruit" value="Grape">
   	<input type="submit">
</form>
<h4>Method=POST enctype="multipart/form-data"</h4>
<form method="POST" enctype="multipart/form-data">
	<input type="text" name="fruit" value="Apple">
	<input type="text" name="fruit" value="Grape">
   	<input type="submit">
</form>

Actual Result:
The value of the field named "fruit" is a comma separated list

Expected Result:
An array of values

Any Workarounds:
This setting only works with Method=POST and and the default enctype ("application/x-www-form-urlencoded")

Attachments:

Comments:

server.coldfusion.productversion = 2016,0,10,314028 Version 314028 is exhibiting this behavior, despite a similar bug report marked as fixed in 303894 https://tracker.adobe.com/#/view/CF-4197259
Comment by N T.
30523 | March 16, 2019 04:31:18 PM GMT
Hi, This bug is not fixed for CF 2016 , we fixed the issue in CF 2018. Moving the bug to "To Fix" for version "CF 2016". Thanks, Suchika.
Comment by Suchika S.
30561 | March 25, 2019 08:01:04 AM GMT