coldfusion - Unable to access cffile.clientDirectory -


i new coldfusion. using coldfusion 10. trying upload multiple image files using cffileupload. able upload files expected. metadata before uploading , clientfiledirectory of uploaded files. pfb code

fileupload.cfm

<cffileupload     name = "uploaddemo"     url="uploadselectedfiles.cfm"     progressbar="true"     addbuttonlabel = "select file(s)"     clearbuttonlabel = "clear"     width="500"     height="400"     title="choose files upload"     maxuploadsize="1"     maxfileselect="10"     extensionfilter="*.gif,*.jpg,*.png,*.doc"     uploadbuttonlabel="upload"     oncomplete="previewfile"     > 

uploadselectedfiles.cfm

<cffile action="uploadall"      destination="#expandpath('.')#"       nameconflict="makeunique"      result="uploadresult"      /> <cfoutput>try</cfoutput> <cfdump var="#cffile#"> 

but cffile.clientdirectory throws status code :500 (unable upload files too....). 1 more thing, not able view 'try' string output in main page (file upload page).

edited: added more info

thank reply.

i looking cffile.clientdirectory (uploadresults.clientdirectory) information, unable it.please help....i in dire need of info. not getting uploaded file. pfb trials.

i tried

<cfdump    var="#uploadresult#"    label="upload meta data"    output="#expandpath( './log.txt' )#"    format="text"    /> 

and logs available.

log.txt

upload meta data - array - top 1 of 1 rows 1) [struct] attemptedserverfile: cat.jpg clientdirectory: [empty string] clientfile: cat.jpg clientfileext: jpg clientfilename: cat contentsubtype: octet-stream contenttype: application datelastaccessed: {d '2013-05-20'} fileexisted: yes filesize: 446759 filewasappended: no filewasoverwritten: yes filewasrenamed: no filewassaved: yes oldfilesize: 446759 serverdirectory: e:\inetpub\wwwroot\cdd\portfolio\ekris serverfile: cat.jpg serverfileext: jpg serverfilename: cat timecreated: {ts '2013-05-20 17:35:57'} timelastmodified: {ts '2013-05-20 17:35:57'}  

can please me clientdirectory info...?

as @leigh mentioned, typically concerned name , location of uploaded file on server. directory on client's machine irrelevant. furthermore believe empty field being returned due enhanced security of modern browsers. considered security breach expose information client's machine. assume adobe has left feature in backwards compatibility.

i have found 3 old posts discuss having inconsistent results cffile.clientdirectory field. happen 2008. mention each of browsers behave differently. mention internet explorer ever returns in cffile.clientdirectory field. posts mention using internet explorer 7. (according 1 of posts) current versions of firefox, netscape , safari not returning information , don't believe chrome existed yet. conclude microsoft caught other browsers , no longer supplying information.

here 3 posts mentioned:


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -