aspSmartupload
HejsaJeg har følgende kode som jeg bruge til at uploade filer med. Hvordan ændre jeg den så hvis der uploades en fil som allerede eksister så tilføjer den noget i stil med (1) på navnet?
<%
On Error Resume Next
' Variables
' *********
Dim mySmartUpload
Dim intCount
' Object creation
' ***************
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
' Only allow txt or htm files
' ***************************
mySmartUpload.AllowedFilesList = "doc,pdf"
' Deny physical path
' *******************
mySmartUpload.DenyPhysicalPath = True
' Upload
' ******
mySmartUpload.Upload
' Save the files with their original names in a virtual path of the web server
' ****************************************************************************
intCount = mySmartUpload.Save("/Stillinger")
