Ho utilizzato l'upload di Baol dando la directory della cartella sulla base di nome e cognome inseriti sul form e fin qui tutto ok.
Addesso ho bisogno di aprire e poter modificare l'upload, risalvando nella stessa cartella, ma tutto finisce in public e non nella cartella originale come faccio...?
Qui sotto il codice originale
codice:<% If Request.QueryString("Save")="1" then Dim oUpload Set oUpload = new cUpload oUpload.AutoRename = True oUpload.Overwrite = True oUpload.Load While Not oUpload.EOF oUpload.Save() Select Case lCase(oUpload.Files("InputName")) Case "fotoa" FileName_fotoa = oUpload.GetFileName() End Select oUpload.MoveNext Wend Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/mdb-database/profili.mdb") Set Rs=server.CreateObject("ADODB.Recordset") id = oUpload.Form("id") Cartella = oUpload.Form("cognome")&oUpload.Form("nome") oUpload.SetPath "\public\" & Cartella SQL = "SELECT * FROM profili WHERE ID ="&id&"" Rs.Open SQL,Conn,3,3 Rs.update Rs("fotoa") = FileName_fotoa Rs.update Rs.Close Conn.Close Set Rs = Nothing Set Conn=Nothing Set oUpload = Nothing Response.Redirect "visualizza_foto.asp?id="&id End if %>

Rispondi quotando