Skip to main content
Inspiring
July 25, 2008
Question

CFFILE Addressing

  • July 25, 2008
  • 1 reply
  • 351 views
Hello,
In an earlier post, it was pointed out to me that for the destination attribute of a CFFILE, I must use absolute addressing or the temp file of coldfusion. Now, if I do this what happens when I load my code onto a remote server? I am thinking I would loose the location of my file. Please advice, TIA
    This topic has been closed for replies.

    1 reply

    Inspiring
    July 25, 2008
    Abdlah wrote:
    > Hello,
    > In an earlier post, it was pointed out to me that for the destination
    > attribute of a CFFILE, I must use absolute addressing or the temp file of
    > coldfusion. Now, if I do this what happens when I load my code onto a remote
    > server? I am thinking I would loose the location of my file. Please advice, TIA
    >

    There are several functions for determining appropriate file paths for
    just this purpose. Take a look at the documentation for the functions
    expandPath(), getCurrentTemplatePath(), getBaseTemplatePath() and their
    brethren.