Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / June 2007



Tip: Looking for answers? Try searching our database.

cffile 'RENAME'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mama_karlo - 28 Jun 2007 16:38 GMT
I need to upload several files to a directory and rename them acc. to certain
naming convention.  If I upload a new file and try to give it a name that
already exists in the directory, the old file with the same name gets
overwritten by a new one.  And as far as I know action='RENAME' does not
support nameconflict='MAKEUNIQUE'.

Is there any work around?

We are running CFMX 7 on Linux.

Thanks
jdeline - 28 Jun 2007 16:44 GMT
You will probably have to do a FileExists( ) function before the CFFILE rename.  If the file already exists, you will have the chance to deal with the issue.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.