' Variables
' *********
Dim mySmartUpload
Dim file
' Object creation
' ***************
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
' Upload
' ******
mySmartUpload.Upload '************************************************************this is 42 line
map=Request("map")
MyVar = now ' 系统时间.
builder=session("admin_name")
set rs=server.createobject("adodb.recordset")
rs.open "select * from road where (id_ is null)",conn,1,3
' Select each file
' ****************
For each file In mySmartUpload.Files
' Only if the file exist
' **********************
If not file.IsMissing Then
' Add the current file in a DB field
' **********************************
rs.addnew
file.FileToField rs.Fields("content_")
'rs("link_") = file.FileName
rs("map_")=map
rs("builder_")=session("admin_name")
rs("BUILD_")=MyVar
rs.update
End If
Next
rs.close
set rs=nothing
conn.close
set conn=nothing