How can I duplicate a file on my server?
I can read it with <cffile action="read"> but I want to duplicate it under a new name.
I found <cffile action="copy"> but I can only duplicate it to another directory. I need to duplicate it in the same directory.
Thnx.
No,
<cffile action="copy">can create a copy in the same directory as the existing file. As long as you use a different file name. So if you are unable to do so, something else is at fault. Please post your code and any error messages.