Android Question FTP UPLOAD PROBLEM

StarinschiAndrei

Active Member
Licensed User
Longtime User
Hi everyone,

Could anybody tell me what is wrong in my code ? folder list is empty
B4X:
Private Sub lbl_upload_Click
    Dim folderExists As Boolean=False
    Dim ftp As FTP
    VacuumToaFile
    If File.Exists(xui.DefaultFolder,"backup.db")=False Then Return
    ftp.Initialize("FTP","ftp.xxxxxxxx.xx",21,"xxxxxxxxxxxxx","xxxxxxxxxxxxxxx")
    Dim ftp_list As Object= ftp.List("/")
    Wait For (ftp_list) ftp_ListCompleted(ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry)
    Log("Success:"&Success)
    Log(ServerPath)
    Log(Folders.Length)
    If Success Then
        For Each f As FTPEntry In Folders
            Log(f)
            If f.Name=cui Then
                folderExists=True
            End If
        Next
    End If
.....

here is the log
Success:true
Server Path: /
Folder lenght:0
ftp folder list in attached imege

Thank you
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
In retrospect, the default mode should have been passive mode. I don't remember any case where active mode worked better.

 
Upvote 0

StarinschiAndrei

Active Member
Licensed User
Longtime User
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…