I have my images for my project under the webroot folder in the e-dang folder
under the image folder and in the consumer folder
i.e. (wwwroot/e-dang/images/comsumer).
But when I reference the file within my code (below), I realize in the error
report that the path returned by coldfusion
Output #ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#) to see where
you're pointing to, it'll be wrong.
Adrian
-Original Message-
From: Fawzi Amadu [mailto:abd...@gmail.com]
Sent: 20 April 2009 17:43
To: cf-talk
Subject: CFIMAGE - File referencing
I have my images for my
#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )#
because you have / in front of images CF assumes you are referencing the path
from WEB ROOT, not from current template path - hence it looks in
C:\ColdFusion8\wwwroot\images instead of in C:\ColdFusion8\wwwroot\e-dang\images
try this
#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )#
because you have / in front of images CF assumes you are referencing
the path from WEB ROOT, not from current template path - hence it
looks in C:\ColdFusion8\wwwroot\images instead of in
C:\ColdFusion8\wwwroot\e-dang\images
try
Thanks a lot to all of you. Your explanation solved my problem.
#ExpandPath('/images/consumer/#Cnsmr_ProductIMAGE#' )#
because you have / in front of images CF assumes you are referencing
the path from WEB ROOT, not from current template path - hence it
looks in
5 matches
Mail list logo