I'm trying to get my app to send files to my ftp server, it connects and throws a "425 can't build data connection" error. I found references to this error in the forum here, but no solution. Has anyone figured this one out?
I have double-checked my syntax, and simplified my code just initialize, and ftpupload, but still same error on my server window, then it hangs and will not execute the next command (ftp.close).
I am able to login and use this server from an ftp client just fine.
I have double-checked my syntax, and simplified my code just initialize, and ftpupload, but still same error on my server window, then it hangs and will not execute the next command (ftp.close).
I am able to login and use this server from an ftp client just fine.
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
FTP.Initialize("FTP", "myftpserver.com", 21, "user", "pass")
Sub btnPlate_Click
FTP.UploadFile(File.DirRootExternal, "1A5AD431.ret", True, "/MCN_SEND/1A5AD431.RET")
FTP.Close
end sub