B Buncher60 Member Licensed User Jul 11, 2018 #1 I cannot get the FTP JobDone to list the files in a FTP directory. The path is configured for FTP on the server. I am in the directory o.k. according to the log in FTP_ListCompleted and I know there is a file there but it does not show in the Files() array. The server is a Windows Server if that makes a difference. Any pointers to what the problem might be would be really appreciated.
I cannot get the FTP JobDone to list the files in a FTP directory. The path is configured for FTP on the server. I am in the directory o.k. according to the log in FTP_ListCompleted and I know there is a file there but it does not show in the Files() array. The server is a Windows Server if that makes a difference. Any pointers to what the problem might be would be really appreciated.
S sorex Expert Licensed User Longtime User Jul 11, 2018 #2 I don't know if there's a way to select passive mode or not in the FTP lib? But you can try that. Native Windows FTP server always had strange issues. Upvote 0
I don't know if there's a way to select passive mode or not in the FTP lib? But you can try that. Native Windows FTP server always had strange issues.
B Buncher60 Member Licensed User Jul 11, 2018 #3 Thanks for your response sorex. I'll try what you've suggested but my very basic understanding of passive mode is that there would need to be a listening port no. returned. There doesn't seem to be a property or method to do that. Maybe it might be handled internally. In any case I'll let you know for future reference. Upvote 0
Thanks for your response sorex. I'll try what you've suggested but my very basic understanding of passive mode is that there would need to be a listening port no. returned. There doesn't seem to be a property or method to do that. Maybe it might be handled internally. In any case I'll let you know for future reference.
DonManfred Expert Licensed User Longtime User Jul 11, 2018 #4 https://www.b4x.com/android/help/net.html#ftp_passivemode Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2018 #5 Always use passive mode: [B4X] Tip: Always set FTP.PassiveMode to True Upvote 0