AspSmartUpload, fast stil i smartUpload
Kan man ikke lave en fast stil i smartUpload?for eksempel
file.FilePathName = "C:\billede.jpg"
<%
' Variables
' *********
Dim mySmartUpload
Dim file
Dim intCount
intCount=0
' Object creation
' ***************
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
' Upload
' ******
mySmartUpload.Upload
strR = 1
' 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
' **************************************************************************
intCount = mySmartUpload.Save("./pic")
' sample with a physical path
' file.SaveAs("./pic" & file.FileName)
' Display the properties of the current file
' ******************************************
Response.Write("Name = " & file.Name & "<BR>")
Response.Write("Størrelse = " & file.Size & "<BR>")
Response.Write("Filnavn = " & file.FileName & "<BR>")
Response.Write("Filtype = " & file.FileExt & "<BR>")
Response.Write("Sti navn = " & file.FilePathName & "<BR><hr>")......... .. .. . . . . .
