ho provato così ma dà errore "impossibile trovare file"
Codice PHP:
For Each File In Uploader.Files.Items
If InStr(File.FileName, ".") > 0 Then
If InStr(Testo_Upload_EstensioniNonAbilitate, Mid(File.FileName, InStrRev(File.FileName, "."), Len(File.FileName) - InStrRev(File.FileName, ".") + 1)) <= 0 Then
' SALVO IL FILE UPLOADATO
File.SaveToDisk Server.MapPath("/public/cartella/" & Session("sottocartella"))
FilesName = FilesName & ", " & File.FileName
SET FSO = Server.CreateObject("Scripting.FileSystemObject")
If FSO.FolderExists(Server.MapPath("/public/cartella/" & Session("sottocartella"))) Then
strOld = FilesName
strNew ="0" & x
Set fs = Server.CreateObject("Scripting.FileSystemObject")
fs.MoveFile strOld, strNew
Set fs = nothing
End if
x = x + 1
Else
Response.Redirect "upload.asp?errore=si"
End If
End If
Next
forse è sbagliato il punto dove ho messo il codice per rinominare il file? :master: