You are using cfdirectory to list the contents of a directory but you only want certain file types. Most people know that you can put in a single wildcard filter. In this example we will look at how to add multiple filters
You can add multiple filters using the pipe | operator.
This example will grab all of the .jpg images from our images directory.
<cfdirectory
action="list" directory="c:\www\images" filter="*.jpg"
name="myimages">
This example will grab more image types from a directory.
<cfdirectory
action="list" directory="c:\www\images" filter="*.jpg|*.gif|*.png"
name="myimages">
+