Kan någon se varför jag får med alla värden förutom bildvariabeln i följande kod, det är ASP Upload *edit* svarade lite hastigt...Bilden följer inte med i ASP Upload
<!-- #include virtual="/include/dbconn.asp" -->
<%
Set Upload = Server.CreateObject("Persits.Upload")
Upload.OverwriteFiles = False
Upload.SetMaxSize 100000, False
Count=Upload.Save(Server.MapPath("/flash/games/printscreens"))
For Each file In Upload.Files
If File.ImageType = "UNKNOWN" Then
Response.Redirect "Fell.asp"
File.Delete
End If
Next
For Each file In Upload.Files
If file.Size = 100000 Then
'This means the file was truncated
Response.Redirect "fel.asp"
File.Delete
End If
Next
Set File = Upload.Files
filnamn = Upload.form("blob")
game= Upload.form("gameName")
points = Upload.form("gamePoints")
If NOT File Is Nothing Then
On Error Resume Next
strFileName= Upload.Files("blob").ExtractFileName
END IF
Dim objConn
player=Session("username")
uploaded = Now()
SET objConn = connect()
objConn.Execute("update tblUsers_toplist set player='"& player &"' ,points='"& points &"' ,picture='"&filnamn&"', uploaded=#"& uploaded &"# WHERE game='"& game &"'")
%>
<%response.redirect "/flash/games/test.asp?p="& filnamn &"&spelare="& player &"&poang="& points &"&uppladdad="& uploaded%>Sv: Bilden följer inte med i ASP Upload
tycker att du ska titta närmare på http://www.aspupload.com/manual_db.html