Title:
Bug 77750:The CFFILEUPLOAD passes a blank object through the oncomplete event
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Jeff Doktor / Jeff Doktor (devJT1)
Created: 06/05/2009
Components: Language, Functions
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
The CFFILEUPLOAD passes a blank object through the oncomplete event.
Method:
Try to upload a file, and the object is blank.
Result:
Here is our code:
<div id="uploadformdiv"
style="position:absolute; top:90px; left:200px; visibility:hidden; z-index:1000;
background-color:white; border:solid thin; width:600px;">
<cffileupload
url="uploadfileaction.cfm"
name="multiupload"
addButtonLabel="Add File"
clearButtonlabel="Clear List"
width="600"
title="File Upload"
maxfileselect="5"
maxuploadsize="5"
uploadbuttonlabel="Upload Now"
oncomplete="handleUploadComplete" />
<cfform name="uploadform" action="">
<cfinput type="button" name="close" onClick="return hideUploadForm();"
value="Finished Uploading Files"/>
</cfform>
</div>
And here is the javascript for the event handler:
// Called when a file is uploaded through multi-file upload
function handleUploadComplete (obj)
{
if (obj.MESSAGE == "Passed") {
FileInfoList.push(obj.FILENAME);
}
alert("here we are in the handleUploadComplete");
alert("obj message = " + obj.message);
alert("obj filename = " + obj.filename);
alert("obj = " + obj);
// Start the handler for getting the file information
setTimeout("getFileInfo('"+obj.FILENAME+"')", timeoutInterval);
alert("timeoutInterval"+ timeoutInterval);
}
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3038825
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: Jeff Doktor
External Customer Email: 753E585344BBDE7B9920157F
External Test Config: 06/05/2009
Attachments:
Comments: