Sorry didnt explain myself properly...
I need the user to physically name their word document to the name of their userid for validation purposes. So there should be no renaming of the file at all.
If the uploaded word document doesnt match the userid - fail
No name duplications are allowed
Any code on how to perform this would be much appreciated
Main Topics
Browse All Topics





by: adonis1976Posted on 2005-06-03 at 06:41:01ID: 14139442
This is what i would do. Dont worry about the name of the file they are unloading.. it can be anything.. so you know how to get the file uploaded to the server..
e)" destination="expandPath(us er09.cfm)" >
for eg..
<cffile action="upload" filefield="formfield" destination="something" nameconflict="makeunique">
<!--- this is where u wil rename the file --->
<cfset userfile = file.ServerFile>
<cffile action = "rename" source="expandPath(userfil