ammetto che ho preso lo script così senza ragionarci tanto.
Il fatto è che non mi salva il file, e non da errore.
Il codice è cosi.
<%
If Request("Upload")="1" then
Dim oUpload
Set oUpload = new cUpload
oUpload.Load()
oUpload.UploadOnly "Images"
oUpload.SaveAs "Pippo.mp3"
oUpload.SaveAll
Set oUpload=Nothing
response.Write("prova")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<form method="Post" enctype="multipart/form-data" action="insert_news.asp?upload=1">
File : <input type="file" name="Campo1">
Nome immagine: <input type="text" name="nome_img">
<input type="submit" name="Enter">
</form>
</body>
</html>

Rispondi quotando
