i have a function that creates a unique date/time stamp. like so:
Code:
function uniqueStamp(strDate)
Dim strUnique
strUnique = datepart("m",strDate) & datepart("d",strDate) & datepart("h",strDate) & datepart("n",strDate) & datepart("s",strDate)
uniqueStamp = strUnique
end function
then i use this to append to the file name. something like this
Code:
thisFile = split(fileName,".")
strFile = thisFile(0) & "_" & uniqueStamp(now()) & "." & thisFile(1)
however, the file will upload with the name of the file and you'll have to use filesystemobject to copy the file to a new name ... something like this:
Code:
Dim fso
set fso=CreateObject("Scripting.FileSystemObject")
fso.CopyFile Server.MapPath(fileName), Server.MapPath(strFile)
this is all rough code, but should give you an idea. and you know where to find me if you have an issue.
Bookmarks