I'm trying to upload a file and it's driving me bonkers!!
I looked at code all over the net and I just can't get it to work. Here's my code:
I'm getting either a 404, or 550 error. Sometimes the file uploads as a zero bit file, but never actually fully arrives. What am I doing wrong? Could this be a firewall issue?
I looked at code all over the net and I just can't get it to work. Here's my code:
VB.NET:
Dim s As String = Trim(txtFile.Text)
Dim fname As String = Microsoft.VisualBasic.Right(s, InStr(StrReverse(s), "\") - 1)
Try
My.Computer.Network.UploadFile(s, <myftpserver> & fname, <username>, <password>)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Last edited: