取的是附件的值:
上传按钮代码:
Dim ftp1 As New FtpClient
ftp1.Host="192.168.1.72"
ftp1.Account = "bug"
ftp1.Password = "bug"
Dim txt As WinForm.TextBox = e.Form.Controls("textbox2")
txt.Value = Tables("BUG录入表").Current("附件")
If ftp1.Upload(txt.value, FileSys.GetName(txt.value)) = True Then
Messagebox.show("恭喜你附件上传完成!","博达BUG综合管理系统",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
Messagebox.show("不好意思附件上传失败!极有可能本地文件与ftp server的文件重名了,请修改名称重新上传","博达BUG综合管理系统",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
.NET Framework 版本:2.0.50727.8009
Foxtable 版本:2014.11.11.1
错误所在事件:窗口,BUG录入系统,上传,Click
详细错误信息:
路径不能为空。
参数名: path