|
Incorrect error message reporting using CFFile action rename |
During a batch process that I was writing recently I was using a CFfile operation to rename some files.
When running it I came across this error message:
2The value of the attribute source, which is currently "C:\fullUrl.jpg", is invalid.
This is the calling cfml code. The actual variable values aren't important.
So I checked and doubled check the source url, and manually browsed to the directory and viewed it. The file was right there! I had a wander around online and found that this isn't a new issue, but more a bad error report.
The error isn't actually relating to the 'source' attribute at all, but rather the 'destination' attribute. In this case it was a file/folder permissions problem. (I didn't have write access). It was simply a case of Coldfusion server reporting it incorrectly.