Jeg har ikke for godt tid i aften men her er et lille hint:
upload.htm start ************
taget fra
http://www.aspsmart.com/scripts/aspSmartUpload/publigen/content/templates/show.asp?P=351&L=EN<HTML>
<BODY BGCOLOR="white">
<H1>aspSmartUpload : Sample 5</H1>
<HR>
<form METHOD="POST" ACTION="save.asp" NAME="PW" ENCTYPE="multipart/form-data">
<table CELLSPACING="0" CELLPADDING="3" BORDER="1" WIDTH="474">
<!-- FILE -->
<tr>
<td><small><font face="Verdana">Select a first file : </font></small></td>
<td><small><font face="Verdana"><input TYPE="file" name="FILE1"></font></small></td>
</tr>
<tr>
<td><small><font face="Verdana">Select a second file : </font></small></td>
<td><small><font face="Verdana"><input TYPE="file" name="FILE2"></font></small></td>
</tr>
<!-- TEXT -->
<tr>
<td width="150"><div align="left"><p><small><font face="Verdana">Text : </font></small></td>
<td width="324"><small><font face="Verdana"><input TYPE="TEXT" name="myTextArea" value=""><br></font></small></td>
</tr>
<!-- SUBMIT -->
<tr>
<td colspan="2" width="474"><div align="center"><center><p><small><font face="Verdana"><input
TYPE="Submit"> </font></small></td>
</tr>
</table>
</form>
</BODY>
</HTML>
upload.htm slut ************
save.asp start *************
taget fra
http://www.aspsmart.com/scripts/aspSmartUpload/publigen/content/templates/show.asp?P=356&L=EN<HTML>
<BODY BGCOLOR="white">
<H1>aspSmartUpload : Sample 5</H1>
<HR>
<%
' Variables
' *********
Dim mySmartUpload
Dim item
Dim value
Dim file
' Object creation
' ***************
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
' Upload
' ******
mySmartUpload.Upload
' FILES Collection
' ****************
Response.Write("<BR><STRONG>Files Collection</STRONG><BR>")
' Informations about files
' ************************
Response.Write("Number of files =" & mySmartUpload.Files.count &"<BR>")
Response.Write("Total bytes of files =" & mySmartUpload.Files.TotalBytes &"<BR>")
' Select each file
' ****************
For each file In mySmartUpload.Files
Response.Write(file.FileName & " (" & file.Size & "bytes)<BR>")
pic = mySmartUpload.Form("file1")
thumb = mySmartUpload.Form("file2")
kommentar = mySmartUpload.Form("myTextArea")
strsql = "insert into billeder (filnavn,description) values ( '" & file.FileName & "','"&kommentar & "')"
conn.execute (strsql)
Next
%>
</BODY>
</HTML>
save.asp slut *************
//akj