Hi Michael,
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.
I tried this simple code and wasn't able to reproduce this issue.
cffile action=RENAME source=C:\temp1.txt
Has anyone experienced having a file literally disappear after a cffile
action=rename ?
This happens on CF8. but code works fine on 7.0.2.
Any ideas?
~|
Download the latest ColdFusion 8 utilities including Report
. Carluen [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 18, 2007 3:09 AM
To: CF-Talk
Subject: File disappears after cffile rename
Has anyone experienced having a file literally disappear after a cffile
action=rename ?
This happens on CF8. but code works fine on 7.0.2
: Thursday, October 18, 2007 12:01 PM
To: CF-Talk
Subject: RE: File disappears after cffile rename
I am still trying to wrangle this issue.
cflock name=#CreateUUID()# type=exclusive timeout=30
throwontimeout=no
cfset PAGE_clean_SERVERFILE = replace(cffile.SERVERFILE, ,_,all)
cffile action=RENAME
cflock name=#CreateUUID()# type=exclusive timeout=30
throwontimeout=no
cfset PAGE_clean_SERVERFILE = replace(cffile.SERVERFILE, , _,
all)
cffile action=RENAME source=cffile.SERVERFILE#
destination=#PAGE_clean_SERVERFILE#
/cflock
Firstly, the CFLOCK as you have it is pointless.
, October 18, 2007 1:01 PM
To: CF-Talk
Subject: RE: File disappears after cffile rename
I am still trying to wrangle this issue.
cflock name=#CreateUUID()# type=exclusive timeout=30
throwontimeout=no
cfset PAGE_clean_SERVERFILE = replace(cffile.SERVERFILE,
,_,all)
cffile action
. Carluen [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 18, 2007 10:01 AM
To: CF-Talk
Subject: RE: File disappears after cffile rename
I am still trying to wrangle this issue.
cflock name=#CreateUUID()# type=exclusive timeout=30
throwontimeout=no
cfset PAGE_clean_SERVERFILE
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
To: CF-Talk
Subject: Re: File disappears after cffile rename
The lock just seemed to prevent that from happening.
If it did, it cannot be for any logical reason.
The purpose of named locks is to ensure that a program cannot lock under
the name,
if another lock with the same name is already
The lock just seemed to prevent that from happening.
If it did, it cannot be for any logical reason.
The purpose of named locks is to ensure that a program cannot lock under
the name,
if another lock with the same name is already active.
Using CreateUUID() to create a unique name, you just make
10 matches
Mail list logo