Railo + CFFM + image.cfc issue - rotate
Posted Monday, October 20, 2008 at {ts '2013-05-23 22:21:00'}

I discovered a problem with the image rotate function in image.cfc with CFFM - Railo doesn't seem to like using cffile action=move where a file already exists at the destination path.

It does however quite happily use cffile action=copy then action=delete...

In Image.cfc, function writeImage - around line 758 (might be slightly different, not sure what other changes I've made further up) - I commented out the cffile action=move and dropped in the following:

<cffile action="copy" source="#tempOutputFile#" destination="#arguments.outputFile#" nameconflict="OVERWRITE">
   <cffile action="delete" file="#tempOutputFile#">
   
   <!--- <cffile action="RENAME" source="#tempOutputFile#" destination="#arguments.outputFile#" nameconflict="OVERWRITE"> --->

hopefully this saves someone else tearing their hair out Smile

ps: <3 cffm - this is an awesome filebrowser Rick, top work Smile