You can also use the <IMG onError="" attribute to display an alternate
image.  However, this requires javascript, I believe.

M!ke 

-----Original Message-----
From: Chad McCue [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 10:08 AM
To: CF-Talk
Subject: Using FileExists

I am sending an email out and need to check if the image is actually
found on the server, if not show a default image. This is what I am
trying to do.

Property Images is a Virtual Directory set up in IIS

<CFIF
FileExists("http://www.somewebaddress.com/PropertyImages/Adirectory/Anot
herDirecotry/ImageFileName.jpg") > Show the Image <CFELSE> Default Image
</CFIF>

The problem is the FileExists never seems to work, my email always shows
the default image.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226216
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to