I haven't had success with *ing the mimetype, but if it's important, why not
do something like this instead?
<cfset myfilename="D:\imageroot\mygif.gif">
<cfswitch
expression="#ucase(listgetat(myfilename,listlen(myfilename,"."),"."))#">
        <cfcase value="GIF"><cfset mymimetype="image/gif"></cfcase>
        <cfcase value="JPG,JPEG" delimiters=","><cfset
mymimetype="image/jpeg"></cfcase>
        <cfcase value="TIF,TIFF" delimiters=","><cfset
mymimetype="image/tiff"></cfcase>
</cfswitch>
<cfcontent type="#mymimetype#" file="#myfilename#">

                Jason Powers
                Fig Leaf Software
                202-797-5440


-----Original Message-----
From: Bosky, Dave [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 4:26 PM
To: CF-Talk
Subject: CFCONTENT


Is it possible to use a wildcard in CFCONTENT type parameter or a comma
delimited list such
as image/gif, image/jpg?  I want to set type to image/* instead of only
image/gif, or image/jpg
to allow all images.

Thanks, 
Dave
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to