aspSmartUpload uploader intet
Jeg har problemer med aspSmartUpload.Jeg har hugget et eksempel fra www.aspsmart.com - men det virker bare ikke.
Komponentet er korrekt installeret (webhotel-udbyder)
Her er min kode - håber at der er nogen der kan hjælpe.
------------Side 1------------
<FORM METHOD=\"POST\" ACTION=\"side2.asp\" ENCTYPE=\"multipart/form-data\">
<INPUT TYPE=\"FILE\" NAME=\"FILE1\" SIZE=\"50\"><BR>
<INPUT TYPE=\"SUBMIT\" VALUE=\"Upload\">
</FORM>
------------------------------
------------Side 2------------
<%
Dim mySmartUpload
Dim file
Dim intCount
intCount=0
Set mySmartUpload = Server.CreateObject(\"aspSmartUpload.SmartUpload\")
mySmartUpload.Upload
For each file In mySmartUpload.Files
If not file.IsMissing Then
file.SaveAs(server.mappath(\"/images/\"))
Response.Write(\"Name = \" & file.Name & \"<BR>\")
Response.Write(\"Size = \" & file.Size & \"<BR>\")
Response.Write(\"FileName = \" & file.FileName & \"<BR>\")
Response.Write(\"FileExt = \" & file.FileExt & \"<BR>\")
Response.Write(\"FilePathName = \" & file.FilePathName & \"<BR>\")
Response.Write(\"ContentType = \" & file.ContentType & \"<BR>\")
Response.Write(\"ContentDisp = \" & file.ContentDisp & \"<BR>\")
Response.Write(\"TypeMIME = \" & file.TypeMIME & \"<BR>\")
Response.Write(\"SubTypeMIME = \" & file.SubTypeMIME & \"<BR>\")
intCount = intCount + 1
End If
Next
Response.Write(\"<BR>\" & mySmartUpload.Files.Count & \" files could be uploaded.<BR>\")
Response.Write(intCount & \" file(s) uploaded.<BR>\")
%>
---------------------------