Cffile rename nameconflict file

Lucee 5.2.9.31

With cffile action=“upload” nameconflict=“overwrite”, cffile.serverfile is the value of the uploaded file.

If you use cffile action=“rename” nameconflict=“overwrite”, cffile.serverfile doesn’t exist and the result option isn’t available with the action rename.

How do you obtain the value of the renamed file?

Dale

With nameconflict="overwrite" the filename of the renamed file will be whatever you specify as the new name in the destination attribute.

Yeah, interesting!, Found some conflicts with that. When action is rename, if we give a destination which differs from source then lucee moves the file from the source to destination.

But in ACF18, the file was renamed in source & copied to the destination. This is the right process.