Upload via IP*Works ActiveX component ?
Hejsa er der nogen af jer der ude der har prøvet at lave en Upload, med kontrolen IPWPlus ?Jeg har prøvet med dette:
<%
Set wup = Server.CreateObject("IPWPlus.WebUpload")
'if we have files, then let's get them
If wup.FileCount > 0 Then
'this example assumes only one file - just look at other indexes for more
'ignore all other files (if any)
wup.FileCount = 1
Response.Write("------------------------------------------------------------" & Chr(13) & Chr(10))
Response.Write(" File Name (From Client): " & wup.FileNames(1) & Chr(13) & Chr(10))
Response.Write(" Approx. Size: " & wup.FileSizes(1) & Chr(13) & Chr(10))
'here we save to a temp file in the script directory
'normally, you would use a path of your choosing
Set fso = Server.CreateObject("Scripting.FileSystemObject")
tmpfile = fso.GetTempName
wup.FileNames(1) = tmpfile
'now write the file (nothing is saved until we invoke 'Retrieve')
wup.Action = 2 'Retrieve
Response.Write(" File Saved As: <a href=""" & tmpfile & """>" & tmpfile & "</a>" & Chr(13) & Chr(10))
Response.Write(Chr(13) & Chr(10))
Response.Write(" (fill the form below to submit other files)" & Chr(13) & Chr(10))
Response.Write("------------------------------------------------------------" & Chr(13) & Chr(10))
End If
%>
Men får denne fejl:
IPWPlus fejl '800a01ad'
ActiveX component can't create object
/upload/upload.asp, linje 3
Den er installeret og med licens på, så det er ikke der fejlen ligger, nogen der har et bud?
Mvh
Jack!!
