I’ve never encountered this one, so I thought I’d share…
I was running this simple rename command on an xml response handler page… very, very simple, right?
<cffile action = "rename" source = "c:\inetpub\mysite\images\tn_0000.png" destination = "c:\inetpub\mysite\images\renamed.png">But here was the error I was getting:
Attribute validation error for tag CFFILE. The value of the attribute source, which is currently c:inetpubmysiteimages tn_0000.png, is invalid.
Whaaat? where did all my backslashes go?? Well, I don’t know… I guess the bermuda triangle of Coldfusion. Either way, after some trial and error, I found the solution:
<cffile action = "rename" source = "c:/inetpub/mysite/images/tn_0000.png" destination = "c:/inetpub/mysite/images/renamed.png">just change them all to forward slashes… it worked!
Tags: backslashes, bugs