Hello,
I am a newbie to coldfusion attempting to list the contents of a directory and keep getting an error that reads Complex object types cannot be converted to simple values. The error is occurring on line 11, at .<cfloop collection="#picturelist#. Any help would be greatly appreciated!
<cfset basefolder = "\\url\Corner_Reports" >
<cfdump var="#picturelist#">
<cfdirectory recurse="no" action="list" directory="#basefolder#" filter="*.pdf" name="picturelist">
<cfloop collection="#picturelist# " item="thefile">
<cfset filetoread = "#picturelist.directory#\#picturelist.name#">
<cfoutput query ="corner_reports">
Looking in: #filetoread# --
<cffile action="read" file="#filetoread#" variable="filetext">
<a href="#picturelist.Directory#\#picturelist.name#index.htm" title="#picturelist.name#">
</cfoutput>
</cfloop>