Ciao
Ho creato un Form con due InputFile, così:
La pagina Modifica.asp è così:codice:<form method="post" action="modifica.asp" name="modifica" enctype="multipart/form-data"> <input type="file" name="Immagine"> <input type="file" name="Allegato"> <input type="submit" value="CARICA" name="invia"> </form>
Come vedete recupero i due file e ne faccio, o almeno vorrei farne, l'upload nella stessa cartella.codice:<% Dim oUpload Set oUpload = new cUpload oUpload.SetPath "../ad" oUpload.AutoRename = False oUpload.Overwrite = False oUpload.Upload Immagine = Trim(oUpload.Form("Immagine")) Allegato = Trim(oUpload.Form("Allegato")) oUpload.SaveAs Immagine oUpload.SaveAs Allegato Set oUpload=Nothing %>
Però mi da questo errore:
ADODB.Stream error '800a0e79'
Operation is not allowed when the object is open.
Upload.asp, line 862
Sapete come mai? Grazie mille per l'aiuto![]()


Rispondi quotando
