Fik det endelig til at virke
KODEN
********************
<html>
<BODY BGCOLOR="white">
<center>
<H1>Upload test</H1>
<%
' Variables
' *********
Dim mySmartUpload
Dim file
Dim intCount
intCount=0
' Object creation
' ***************
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
' Upload
' ******
mySmartUpload.Upload
' Select each file
' ****************
For each file In mySmartUpload.Files
' Only if the file exist
' **********************
If not file.IsMissing Then
' Save the files with his original names in a virtual path of the web
server
'
**************************************************************************
file.SaveAs("/aspSmartUpload/Upload/" & file.FileName)
' sample with a physical path
' file.SaveAs("c:\temp\" & file.FileName)
' Display the properties of the current file
' ******************************************
Response.Write("Navn = " & file.Name & "<BR>")
Response.Write("Størrelse = " & file.Size & "<BR>")
Response.Write("Fil navn = " & file.FileName & "<BR>")
Response.Write("Fil type = " & file.FileExt & "<BR>")
Response.Write("Fil sti = " & 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>")
%>
<img src="/aspSmartUpload/Upload/<%=(file.FileName)%>">
<%
intCount = intCount + 1
End If
Next
' Display the number of files which could be uploaded
' ***************************************************
Response.Write("<BR>" & mySmartUpload.Files.Count & " fil kunne blive
uploadet.<BR>")
' Display the number of files uploaded
' ************************************
Response.Write(intCount & " fil(er) blev uploaded.<BR>")
%>
</center>
</BODY>
</HTML>