Kör orginalet nu... behöver ju bara ladda upp och föra in lite i db...
Men får Operation not allowed
Kolla koden jag har gjort:
[red]
<%
option explicit
Dim objUpload
Dim strFullPath
Set objUpload = New overrUpload
With objUpload
.InputFormName = "UploadFile"
.UploadPath = "uppladdat/"
'.NewFileName = "myFileName"
.NewFileName = .GetRandomName(10) '# Random filename
.UploadFile
strFullPath = .UploadedFilePath
End With
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("bilder.mdb")
strTitel = objUpload.Form("titel")
strVart = objUpload.form("vart")
strDatum = Date()
strSQL = "Insert into pics (titel, vart, sokvag, datum) "&_
"Values ('"&strTitel&"','"&strVart&"','"&strFullPath&"','"&strDatum&"')"
objConn.execute strSQL,,128
Set objUpload = nothing
response.redirect "default.asp?success=1&path=" & strFullPath
%>
<!--#include file="clsOverrUpload.asp"-->
och då är line 47 i clsOverrUpload.asp:
RequestBin = Request.BinaryRead(byteCount)
Va i liksom?
