the problem is when i upload a 2 or more same files name exp-goal.jpg, it will return "files already exist". ok this is my codes,
Expand|Select|Wrap|Line Numbers
- Set Upload = Server.CreateObject("Persits.Upload.1")
- Count = Upload.Save("d:\cmsupload\cimg\")
- for each File in upload.Files
- '
- '...sme operation here..
- set rename = CreateObject("scripting.FileSystemObject")
- set f = rename.GetFile(filepath1)
- f.Copy "d:\www\cmsupload\cimg\" newname & "." & Ext, false
- next
Expand|Select|Wrap|Line Numbers
- Set Upload = Server.CreateObject("Persits.Upload.1")
- Count = Upload.Save("d:\cmsupload\cimg\")
- for each File in upload.Files
- '
- '...sme operation here..
- set rename = CreateObject("scripting.FileSystemObject")
- set f = rename.GetFile(filepath1)
- f.Copy "d:\www\cmsupload\cimg\" newname & "." & Ext, false
- Set fso = CreateObject("Scripting.FileSystemObject")
- fso.Deletefile ("c:\windows\desktop\" & oldname)
- next
it work perfectly if i insert the diffrent files name but something i dont really understood in here isn't the upload.Files will functioning like an array? array(0) then if next, array(1) and continue...