As a rule, applications should use relative paths wherever possible. Absolute paths can be problematic if files or directory locations change. If you need to refer to absolute paths (for example, in ), set up a logical path in the ColdFusion Administrator (the Mappings page) and use that in your path. That way, if a path changes you can make the change in just one place (the mapping) and will not have to update lots of code (which can introduce errors). (Applies to: ColdFusion All)

Leave a Reply