tracker issue : CF-4204103

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

FORM scope is missing values when same named fields include type=file

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

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

Created: 03/16/2019

Components: Language, Scopes

Versions: 2016,2018

Failure Type: Others

Found In Build/Fixed In Build: N/A / CF2016U12,CF2018U5

Priority/Frequency: Normal /

Locale/System: / Windows 7

Vote Count: 0

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:

server.coldfusion.productversion = 2016,0,10,314028 Also applies to ColdFusion 11
Comment by N T.
30522 | March 16, 2019 04:34:18 PM GMT
The update says fixed in build 2020.0.0.314683, which I assume means the next version. This issue exists all the way back to CF11, what about the current versions - CF2016 and 2018?
Comment by N T.
30991 | July 05, 2019 05:31:04 PM GMT