UploadFile
I'm having some trouble uploading a file to my webserver, using the new My.Computer.Network.UploadFile method.
This is the code i am using (The credentials are fictitious
) :
So, that's my code. The error I am receiving from theCatchMsgBox is "The request was aborted: The request was canceled". I hope some one will know what's up. Thanks in advance, Hamish.
Dim filepathuploadAsString ="C:\uploadtest.txt"
Dim urluploadAsString = "http://hamdisk.hamdev.com/jacob/uploadtest.txt"
Dim usernameAsString ="jacob"
Dim passwordAsString ="JCrules"
Try
My.Computer.Network.UploadFile(filepathupload, urlupload, username, password)
Catch exAs Exception
MsgBox(ex.Message)
Finally
MsgBox("Try Completed")'To show the end of the try
EndTry
Ican get and FTP location to work, just not HTTP.

