' Obtain file name
Filename = File.Filename
Ext = getFileExt(Filename)
intSizeK = Int((File.Size/1024) + .5)
'GetFileSizeType = "("&UCase(File.GetExtensionName(File))&", "&intSizeK&"K)"
Response.Write(Filename &" Size : "& intSizeK & "K <br>" )
'Response.Write "extension : " & Ext &"<br>"
'For Each Ext In ExtArray
'Response.Write("."&Ext & " Recomment File type<br />")
'Next
For x=0 to Ubound(ExtArray)
if Ext = ExtArray(x) Then
'Response.Write("."&Ext & " Recomment File type<br />")
else
'Response.Write("."&Ext & " Un-Recomment File type<br />")
exit for
End if
Next
'check if file exists in c:\upload under this name
If Upload.FileExists("c:\upload\" & filename ) Then
Response.Write "File with this name already exists."
Else
' otherwise save file
File.SaveAs "c:\upload\"&todays&File.Filename
'Response.Write "File saved as " & File.Path & "<br>"
'Response.Write "<br>"&todays
upped = upped+1
End If
Else ' file not selected
'Response.Write "File not selected."
End If