Hi, Michael...

I've used cffile many times to upload documents,
but never to rename them, so I'm speaking from
a lack of experience.

However, looking at the documentation, I see that the
"source" is a full local system path with the filename,
and the "destination" is also a full local system path,
including the new name of the file.

While the paths can be absolute or relative, it seems
from your code below that neither the source nor the
destination is a path.

Also, you might try putting

<cfoutput>#PAGE_clean_SERVERFILE#</cfoutput>
<cfabort>

after the cfset statement to make sure your file renaming
to eliminate spaces is producing the desired name.

One last thing...I just noticed that you've got only 1 "#"
around cffile.SERVERFILE in your cffile statement.  Is that
in your source, also?

Rick


> -----Original Message-----
> From: Michael E. Carluen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 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="RENAME" source="cffile.SERVERFILE#"
> destination="#PAGE_clean_SERVERFILE#">
> 
> </cflock>
> 
> 
> 
> Since this is an avi file being uploaded on a fairly new server, does
> my
> MIME registration on IIS have anything to do with the cffile rename
> anomaly?
> I currently have it for video/avi.
> 
> 
> 
> Any other ideas for me to check for, will help.
> 
> 
> 
> Thanks,
> 
> 
> 
> Michael
> 
> 
> 
> 
> 
> > -----Original Message-----
> 
> > From: Michael E. 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.
> 
> >
> 
> >
> 
> >
> 
> > Any ideas?
> 
> >
> 
> >
> 
> >
> 
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291448
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to