@ Paul, Rick, and Brad: Thanks a bunch for your comments, ideas, suggestions.
The reason why I had the cflock was because directly after the cffile rename, was a cfexecute for ffmpeg. Without the lock, it seemed that ffmpeg begins to execute even before the actual file rename on the file system completes. Ffmpeg then throws an error because it does not allow file names with spaces. You're talking milliseconds of overlap here- unsure if its caused by the server OS latency but as far as CF goes, I think it thinks has completed rename. It doesn't seem to happen all the time, but I did see it happen. The lock just seemed to prevent that from happening. > -----Original Message----- > From: Michael E. Carluen [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 18, 2007 11:11 AM > To: CF-Talk > Subject: RE: File disappears after cffile rename > > Issue solved. (Or perhaps a CF8 bug) > > On: > > <cfset PAGE_clean_SERVERFILE = replace(cffile.SERVERFILE," ","_","all")> > <cffile action="RENAME" source="#cffile.SERVERFILE#" > destination="#PAGE_clean_SERVERFILE#"> > > Apparently on CF8, if the cffile.serverfile name and the newly assigned > name > var are the same, the file will get deleted when it fires the cffile > rename. > To fix it, I wrote a compare() between the 2 names: if its different, on > then will it execute the cffile rename. > > I didn't have to do this on CF7 and below. > > Hth someone else in the future. > > Michael > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291459 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

