Hi guys,

I'm trying to build a simple FTP upload program that can transfer a single file onto an FTP. I've ironed out a few bugs now, but I keep on getting a 12029 error and the format of what is on the server compared to the original is pretty messed up:-

check it out.....

this is the original - - - - C:\starz.SWF (a 1k shockwave movie)

and here's the result of the upload on the root of my FTP - - - - - - - - - - -

- -.pureftpd-upload.42c6bdcc.15.7bc5.151a94fd (zero k file)


And here's my current code, although i'm using the INET component dropped onto the form:-

VB Code:
  1. Private Sub Form_Load()
  2.  
  3.     WriteFile
  4.  
  5. End Sub
  6.  
  7.  
  8. Public Sub WriteFile()
  9.      
  10.     Dim LocalFile As String
  11.     Dim RemoteFile As String
  12.          
  13.     LocalFile = "C:\starz.swf"
  14.     RemoteFile = "starz.swf"
  15.        
  16.     Inet1.Execute , "PUT """ & LocalFile & """ """ & RemoteFile & """"
  17.        
  18.     Do While Inet1.StillExecuting = True
  19.         DoEvents
  20.     Loop
  21.        
  22.     MsgBox (Inet1.ResponseCode & vbCrLf & Inet1.ResponseInfo)
  23.                  
  24. End Sub

the settings I am using on the INET component are as follows:-

accesstype:- 0 - icUseDefault (tried icDirect aswell)
protocol:- 2 - icFTP (tried
remoteport - 21

and obviously my FTP location and username / password.


any help will be greatly appreciated!!!!