Jag håller på med ett aspuploadskript!! Vet inte hur din komponent fungerar. MEn det kanske vad så här du skulle skriva:Ett felmeddelande jag inte förstår!!
filen Form.asp
<html>
<body>
<form method="post" enctype="multipart/form-data" action="upload.asp">
<p>
<input type="file" name="file">
</p>
<p> namn:
<input type="text" name="av">
</p>
<p>epost
<input type="text" name="epost">
<br>
<input type="submit" value="Skicka">
</p>
</form>
</html>
filen Upload.asp
<%
Set Upload = Server.CreateObject("Persits.Upload.1")
Upload.Save("c:\upload")
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath ("fileupload.mdb")
strSQL="INSERT INTO fileupload ([file], [epost], [av]) VALUES('" & Upload.Form("File.Path") & "', '" & Upload.Form("epost") & "', '" & Upload.Form("av") & "')"
Connect.Execute(strSQL) '<<<<----- rad 10
Connect.Close
Set Connect = nothing
%>
felmeddelande:
Feltyp:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][Drivrutin för ODBC Microsoft Access] Fältet 'fileupload.file' får inte vara tomt.
/upload/upload.asp, line 10
Vad e fel?Sv: Ett felmeddelande jag inte förstår!!
<code>
strSQL="INSERT INTO fileupload ([file], [epost], [av]) VALUES('" & Upload.Form("File").Path & "', '" & Upload.Form("epost") & "', '" & Upload.Form("av") & "')"
</code>