tracker issue : CF-3041124

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

Bug 82396:CFFILEUPLOAD: More than one control with an onComplete callback results in the last onComplete in the last control to be called

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Brian Klaas / Brian Klaas (Brian Klaas)

Created: 03/10/2010

Components: AJAX, UI Components

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 273261

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Mac 10 All

Vote Count: 0

Problem:

CFFILEUPLOAD: More than one control with an onComplete callback results in the last onComplete in the last control  to be called.
Method:

[vmannebo 3/17/10] 

\\blrfs04.macromedia.com\builds\coldfusion\Bugs\82396\bug82396-fileupload.cfm

or


1. Create a page with more than one <cffileupload> control with an onCompelte attribute. Give each <cffileupload> control a unique name.
2. Upload a file using the first control on the page. 
3. The onComplete function of the last control defined on the page is always called.

Example:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"        "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><title>cffileupload Bug Test</title><script language="javascript"><!--function uploadOneDone() {alert("uploadOneDone called");}function uploadTwoDone() {alert("uploadTwoDone called");}//--></script></head><body><p>Upload One, calls uploadOneDone() when finished.</p><p><cffileupload url="upload.cfm" name="uploader1" onComplete="uploadOneDone" /></p><p>Upload Two, calls uploadTwoDone() when finished.</p><p><cffileupload url="upload.cfm" name="uploader2" onComplete="uploadTwoDone" /></p></body></html>
Result:

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

Watson Bug ID:	3041124

External Customer Info:
External Company:  
External Customer Name: Brian Klaas
External Customer Email: 4DB030B744633A38992016B6
External Test Config: 03/10/2010

Attachments:

Comments: