You have a filename set in a variable but would like to find out what the extension is for it, perhaps to display the proper file icon next to it.
Use the listLast() function to pull this out.
<cfset myFilename='#FileNameVariable#'> <cfset myFilename = listLast(mymyFilename,".")> <cfoutput> #myFilename# </cfoutput>
+