Roberto P. Well-Known Member Licensed User Longtime User Apr 14, 2020 #1 Hi, i'm using the FTP for download any files from server and using event DownloadProgress for showing the progress. But the Total values is even -1. this is the code: B4X: mFtp.Initialize("ftp", mFTPAddress, 21, mFTPUSer, mFTPPsw) mFtp.PassiveMode = True mFtp.UseSSL = False mFtp.UseSSLExplicit = False Private Sub ftp_DownloadProgress(ServerPath As String, TotalDownloaded As Long, Total As Long) Log("download.." & ServerPath & " progress" & (TotalDownloaded / 1024) & " total" & Total) End Sub download..InstallAgon/EnumerativiFIleDati+Script/State.xml totale 42.8359375 dimensione -1 can modify any value? thank regards Last edited by a moderator: Jun 29, 2020
Hi, i'm using the FTP for download any files from server and using event DownloadProgress for showing the progress. But the Total values is even -1. this is the code: B4X: mFtp.Initialize("ftp", mFTPAddress, 21, mFTPUSer, mFTPPsw) mFtp.PassiveMode = True mFtp.UseSSL = False mFtp.UseSSLExplicit = False Private Sub ftp_DownloadProgress(ServerPath As String, TotalDownloaded As Long, Total As Long) Log("download.." & ServerPath & " progress" & (TotalDownloaded / 1024) & " total" & Total) End Sub download..InstallAgon/EnumerativiFIleDati+Script/State.xml totale 42.8359375 dimensione -1 can modify any value? thank regards
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2020 #2 It will always show -1. Don't use that parameter. It was added by mistake. Upvote 0
Roberto P. Well-Known Member Licensed User Longtime User Apr 14, 2020 #3 Erel said: It will always show -1. Don't use that parameter. It was added by mistake. Click to expand... ok, thank you Upvote 0
Erel said: It will always show -1. Don't use that parameter. It was added by mistake. Click to expand... ok, thank you
Roberto P. Well-Known Member Licensed User Longtime User Apr 14, 2020 #4 Erel said: It will always show -1. Don't use that parameter. It was added by mistake. Click to expand... Erel do you have any method for read the size of the file before download? Upvote 0
Erel said: It will always show -1. Don't use that parameter. It was added by mistake. Click to expand... Erel do you have any method for read the size of the file before download?
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2020 #5 Yes, use FTP.ListFiles. Upvote 0