tracker issue : CF-3777301

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

fileUploadAll() does not work with HTML5 <input> multiple attribute

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 06/17/2014

Components: Language

Versions: 10.0

Failure Type: Data Loss

Found In Build/Fixed In Build: Final / CF10_Update14

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win All

Vote Count: 0

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem Description:

fileUploadAll() does not work with HTML5 input multiple but <cffile action="uploadall"> works as expected.


Steps to Reproduce:

<cfdump var="#form#">

<cfif isDefined("form.sent")>
        <!--- this works --->
	<!---<cffile action="uploadall" destination="d:\upload\" nameconflict="makeunique" result="uploads">--->

        <!--- DOES NOT work --->
	<cfset uploads = fileUploadAll("d:\upload\","","makeUnique")>
	
	<cfdump var="#uploads#">
</cfif>

<form method="post" enctype="multipart/form-data" >
	<input type="file" name="audi" multiple="true">
		
	<input type="hidden" name="sent" value="">
	<button type="submit">Send</button>
</form>


Actual Result:

using fileUploadAll(), same file (first file) is processed multiple times 


Expected Result:

files are processed correctly.


Any Workarounds:

use CFML

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3777301

Keywords:
FixTested


External Customer Info:
External Company:  
External Customer Name: henrylearn2rock
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Verified this is fixed in CF11 Update 3. The fileUploadAll() example above uploads each file instead of uploading the 1st file multiple times. Thanks!, -Aaron
Comment by External U.
11862 | November 06, 2014 06:06:56 AM GMT