Billed upload
Hey alleJeg kunne godt bruge noget hjælp til at checke uploade billeder, er de forstore ???
Jeg har følgende kode..
Set Upload = Server.CreateObject("Persits.Upload.1")
Upload.OverwriteFiles = False
Upload.SetMaxSize 3000000, True
Count = Upload.Save(Server.Mappath("img/profil/"))
If Err <> 0 or Count = 0 Then
If Err <> 0 Then theresponse = "Fejl: " & Err.Description Else theresponse = "Fejl: Ingen fil(er) valgt."
else
Set File = Upload.Files(1)
SQL = "update medlem set billed='" & replace("" & File.Filename,"'","''") & "' where id=" & session("osmond")
conn.Execute(SQL)
end if
Thomas
