去掉通用事件头后,想记录文件打开信息,该怎么写?
Dim fl As String = ProjectPath & "web\" & e.path
If filesys.FileExists(fl)
Dim idx As Integer = fl.LastIndexOf(".")
Dim ext As String = fl.SubString(idx)
Select Case ext
Case ".jpg",".gif",".png",".bmp",".zip",".rar",".txt",".jpeg",".txt",".doc",".docx",".xls",".xlsx",".pdf",".pdf"
Functions.Execute("txtProgress","文件发送:" + fl) ‘用于记录文件打开的路径名称
End Select
End If
但是现在放在httprequest里面,不起作用。
只有不存在该文件的时候代码:
Dim str As new StringBuilder
str.AppendLine("path=" & e.Path)
才有作用,显示如:path=upload\process\2018\8\6eb0bb4d175549049e11902c5832e55a.jpeg