I read the entire post.
I am new to coldfusion. I am using coldfusion-10. I am facing a similar issue. I am trying to upload multiple image files using cffileupload. I am able to upload files as expected. But I would like to get the metadata before uploading and get the clientFileDirectory of the 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 To 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#"><cfdump var="#cffile.clientDirectory#">
But cffile.clientDirectory throws an Status code :500 (unable to upload files too....).One more info, I am not able to view the 'try' string output in the main page (file upload page). Please help...