Okay, that works but it's not "technically" relative path. It's still using absolutely path. So back the question, if cffile read is able to use relative path, in ColdFusion, what is it "relative" to? By the way, many thanks for that code. It's much better than what I had.
Read what I posted about the documentation. cffile read has to be an absolute path. If you use a relative path its relative to the CF temp folder:
|
If not an absolute path (starting with a drive letter and a colon, or a forward or backward slash), it is relative to the ColdFusion temporary directory, which is returned by the GetTempDirectory function.
|
There is no relative path relative to your web files. IF you just put a relative path in, it will be looking in CFs temp folder for the file.