AdobeStock_455007340

Undocumented Change In <CFFILE> DESTINATION Attribute

Home » Undocumented Change In <CFFILE> DESTINATION Attribute

I just had to debug some really old code that used to work. I found the issue, and it appears that the code broke in going from CF5 to CFMX (yep, it is code that is not used very often). I was using to process file uploads, and was using the destination attribute to specify the full path of the file to be saved. As I said, this used to work. But not anymore because destination expects the path to a folder to store the file in, and no longer accepts a path to an actual destination file. The history in LiveDocs says that in CFMX destination was changed so that a trailing slash was no longer needed in paths, but makes no mention of not being able to use actual destination file names anymore. CF5 documentation clearly says that DESTINATION can be a fully qualified file path or directory, so it appears that we broke something in the port from CF5 to CFMX. Bummer.

3 responses to “Undocumented Change In <CFFILE> DESTINATION Attribute”

  1. Jeff Howden Avatar
    Jeff Howden

    Perhaps you just need to apply the 7.0.2 updater to your server then, Ben. This oversight was addressed in the updates rolled out in that version.
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000245.htm#1098395

  2. Ben Forta Avatar
    Ben Forta

    Huh? I missed a box when updating to 7.0.2? Whoops! Thanks for the nudge!
    — Ben

  3. Greg Benson Avatar
    Greg Benson

    I have had this problem on two web sites (different servers) that were recently upgraded to cfmx. Does the updator fix this problem? I have to get back to fixing the problems soon.

Leave a Reply