I'm pretty sure fileExists is a local function. You'd have to use it
like
FileExists("D:\websites\somewebaddress\PropertyImages\Adirectory\Another
Directory\ImageFileName.jpg")If you want to check an image at a remote location, you'll need to try to use <cfhttp> and figure out what kind of page or response you get back when the image doesn't exist and code around that. It's probably overkill to do it on each request though. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -----Original Message----- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 11:42 AM To: CF-Talk Subject: RE: Using FileExists 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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226217 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

