> I read in the docs (for action="upload") that relative
> paths are calculated
> relative to some directory (windows temp or something??)
> but you can look
> that up. What does #ExpandPath("Presentations.txt")#
> return?

An absolute path to the specified relative path from the directory
containing the current base template (this is silly). So for instance,
if you look at

http://www.mysite.com/store/index.cfm

and this file contains #expandPath("file.txt")# the path returned will
be an absolute path to a "file.txt" file located in the store
directory, i.e.

url to file = http://www.mysite.com/store/file.txt

theoretical value of expantpath() =
c:\inetpub\wwwroot\store\file.txt

If /store/index.cfm includes another file located elsewhere, for
instance /wwwroot/snarfle/the/garthak.cfm and this other garthak.cfm
template then contains #expandPath("file.txt")# the value of
expandpath() will be the same... which is why I say it's silly, and I
never use it, because I never care what the location of the base
template is, because nothing else in ColdFusion uses relative paths
from the base template, and since the base template directory can
change it can also modify (read gum-up) an absolute file path. It
would have made a lot more sense for it to expand from the current
template path, since the relative path from the current template to
the target file won't change, but that's not what we got.


s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207496
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

Reply via email to