954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Renaming FTP upload

I would like to rename the users file that they upload to my ftp. I want to add the CustId to the begging of the file name. For example it they select a file called test I want it to be named 223Test in my upload folder on my ftp site.

I uploaded a file called uptest and when my code ran I had two files in my upload folder. One was called uptest and the other was called acff97. So instead of renaming the file it just created a new one. I want to rename the file so that its the custId. Any suggestions?

cfnut
Newbie Poster
8 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

the "MAKEUNIQUE" option of I believe just generates a random name so that there is not a naming conflict. I think you would have to use some objext variables to add the prefix you want. I have not done this in cf but I know that similar actions can be performed in ASP.

bkendall
Junior Poster in Training
69 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You