tracker issue : CF-4042406

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

cffile uploadall not returning serverfile

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/Workaround

Reporter/Name(from Bugbase): Tim Do / Tim Do (Tim Do)

Created: 08/24/2015

Components: File Management, CFFile

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Windows 7 32 bit

Vote Count: 0

Problem Description:

We just updated to cf11 from cf9. Just found out that our uploader is no longer working. The files are uploading fine but the return variable is no longer present. I used to have a variable #serverfile# which returned me the renamed file that was uploaded in cf9. Now i get this error:
Element SERVERFILE is undefined in FILE.

Steps to Reproduce:
use cffile action="uploadall" and try to return file.serverfile
Actual Result:
Element SERVERFILE is undefined in CFFILE. 

Expected Result:
name of uploaded file
Any Workarounds:
tried to scope with result and use result.serverfile without luck. tried to output only serverfile without scoping and i do see:
{UPLOADALL_RESULTS=[{CLIENTDIRECTORY={},CLIENTFILE={Mitchell_#23I_ Companion Animal.pdf},FILEWASAPPENDED={false},FILESIZE={1513328},CONTENTTYPE={application},SERVERFILE={Mitchell_#23I_ Companion Animal.pdf},CLIENTFILEEXT={pdf},TIMECREATED={{ts '2015-08-24 15:20:43'}},CONTENTSUBTYPE={octet-stream},FILEMODESET={false},FILEWASSAVED={true},OLDFILESIZE={1513328},SERVERFILENAME={Mitchell_#23I_ Companion Animal},FILEATTRIBSET={false},TIMELASTMODIFIED={{ts '2015-08-24 15:20:43'}},ATTEMPTEDSERVERFILE={Mitchell_#23I_ Companion Animal.pdf},DATELASTACCESSED={{d '2015-08-24'}},SERVERFILEEXT={pdf},FILEWASRENAMED={false},SERVERDIRECTORY={\\INSITECF\InSite_Data\iNCompliance_Files},FILEEXISTED={false},FILEWASOVERWRITTEN={false},CLIENTFILENAME={Mitchell_#23I_ Companion Animal}}], UPLOADALL_ERRORS=[]} for CFSQLTYPE CF_SQL_VARCHAR. 

but i can't access any of these.

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

Watson Bug ID:	4042406

External Customer Info:
External Company:  
External Customer Name: Tim
External Customer Email:  
External Test Config: server 2012 r2





Not a Bug. There is small change is result returned when using cffile uploadAll action. Results will now have structure like file.UPLOADALL_RESULTS and file.UPLOADALL_ERRORS to enclose result for all files uploaded. So to access server file one can use file.UPLOADALL_RESULTS[1].serverfile (Comment added from ex-user id:sandeepp)
Comment by Adobe D.
6148 | September 23, 2015 12:05:41 AM GMT
Will raise a document bug for informing the user about the same.
Comment by Akhila K.
6149 | September 23, 2015 05:40:00 AM GMT
Adobe, Another bug needs created as well. Please see Basically: CF should -not- be introducing variables having underscores. This is inconsistent w/ the rest of the language. If these variables already exist in CF11 having underscores, then a ticket needs created to introduce the underscore-less versions (i.e. file.uploadAllResults and file.uploadAllErrors). And the ones w/ underscores should eventually be deprecated. Please keep CF consistent! Thanks!, -Aaron
Comment by External U.
6150 | September 23, 2015 01:11:01 PM GMT