Title:
Bug 79641:When the cffile tag throws an error on upload from the cffileupload tag, the parent page still receives a success message
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Daniel Short / Daniel Short (Daniel Short)
Created: 08/30/2009
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 255777
Priority/Frequency: Normal / Most users will encounter
Locale/System: English / Mac 10 All
Vote Count: 0
Problem:
When the cffile tag throws an error on upload from the cffileupload tag, the parent page still receives a success message.
Method:
Create two files:uploader.cfm:<script type="text/javascript">function completed(resultObject){for each (prop in resultObject){alert(prop);}}</script><cffileupload url="uploadhandler.cfm" name="myupload" oncomplete="completed"/>uploadhandler.cfm:<cffile action="uploadall" destination="#ExpandPath(".")#" result="myResult" nameconflict="error" />Notice that the nameconflict attribute is set to error.1. Browse to any file, and upload it2. Check the disk to be sure the file was uploaded to the same directory as uploader.cfm3. Browse to the same file again, and upload it.The file does not get rewritten to disk (check the file dates), but the uploader still receives a success message stating the file was uploaded.
Result:
When an error occurs during the upload of a file, the cffileupload always receives a success.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039824
External Customer Info:
External Company:
External Customer Name: Daniel Short
External Customer Email: 49EF0B4C42C97E5499201549
External Test Config: 08/30/2009
Attachments:
Comments: