CFFILE Move Works, but Rename Fails
I'm migrating files from Windows ColdFusion 2018 to Linux ColdFusion 2018. On the Windows Server, I can successfully run the following code:
<cffile action="rename" source="#srcDIR#" destination="#destDir#\#form.memID#.PNG" nameconflict="overwrite">
Where #srcDIR# is the path to the image that needs to be moved. But on Linux, the same command below fails "The source ... specified in the cffile tag is invalid." I added a CFIF FileExists check and it's returns as true, so #srcDIR# can be found.
<cffile action="rename" source="#srcDIR#" destination="#destDir#/#form.memID#.PNG" nameconflict="overwrite">
If I change the cffile to move and remove nameconflict as shown next, it works:
<cffile action="move" source="#srcDIR#" destination="#destDir#/#form.memID#.PNG">
Anybody have a clue why rename fails, but move works?
