It's all in how you call expandPath()...
expandPath("../myDirectory/mySharedDirectory/")
....will return...
c:\inetpub\wwwroot\myDirectory\mySharedDirectory\
However, if you a slash to the beginning, like this...
expandPath("/../myDirectory/mySharedDirectory/")
....you will get...
\\sharedComputer\ShareName\shareLocation\mySharedDirectory\
So your code will look something like:
<cfif fileExists(expandPath('/propertyImages/imagename.jpg'))> ...etc... </cfif>
-nathan strutz
http://www.dopefly.com/
On 10/17/05, Chad McCue <[EMAIL PROTECTED]> wrote:
> I have created a virtual directory called "PropertyImages" in IIS that holds
> all my property images. The directory is "e:\photos\"
>
> I need to do a FileExists(), on that directory to see if the property exists
> if not show a default image. My coldfusion files are on
> my d:\ drive.
>
> to show the images I am using and they show fine when they exist:
> <img src="/propertyImages/imagename">
>
> Anyone know howI can do this?
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:221211
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54