Re: CFIMAGE - File referencing

2009-04-20 Thread Dave Watts
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

RE: CFIMAGE - File referencing

2009-04-20 Thread Adrian Lynch
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

Re: CFIMAGE - File referencing

2009-04-20 Thread Azadi Saryev
#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

Re: CFIMAGE - File referencing

2009-04-20 Thread Fawzi Amadu
#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

Re: CFIMAGE - File referencing

2009-04-20 Thread Fawzi Amadu
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