B4A Library Automated FTP Library

GMan

Well-Known Member
Licensed User
Longtime User
still 2.71
 

GMan

Well-Known Member
Licensed User
Longtime User
Didnt try it yet (in the evening is mostly ARDUINO-coding time - will check it tomorrow
 

Fabrice La

Active Member
Licensed User
Longtime User
Hi
My code :
B4X:
If FTPA.IsInitialized = False Then
                FTPA.Initialize(Activity, Me, GetStringserver, GetStringlogin, GetStringpasswd, GetIntport,False, False)
                FTPA.SetTextSize(50,50,50,50)
            End If
            If FTPA.WiFi_IsConnected = False Then
                Msgbox("WiFi not connected !! please check", "WIFI")
            Else
                FTPA.SetProcessCompleteOn(True)
  '              FTPA.SetStealthOn(True)
                FTPA.SetText("Download progress", "Upload progress", "Total Progress", "File in progress", "Cancel load", "Done load")
                FTPA.UploadFile(File.DirDefaultExternal,"/share/",tmpStr2 & ".zip")

The progress dialog box is a tiny square in the middle of my tablet's screen how to modify the size ?
I did modify the textsize ....

How to close the dialog box when there is an error ? Without to click "Cancel" ?
 
Last edited:

GMan

Well-Known Member
Licensed User
Longtime User
Sorry, didnt read the news - yes, solved. Works fine.

Can we manage the size of the filesize and trabsfer volumen text ?
the filesize etc. isnt readable because nearly out of the borders
 

GMan

Well-Known Member
Licensed User
Longtime User
Thx...that's it
 

Fabrice La

Active Member
Licensed User
Longtime User
The progress dialog box is a tiny square in the middle of my tablet's screen how to modify the size ?
I did modify the textsize ....

How to close the dialog box when there is an error ? Without to click "Cancel" ?
 

Fabrice La

Active Member
Licensed User
Longtime User
To close the dialog and kill the process use something like this:


I will look at what it will take to mod the library to change the dialog box size. At the current time it is fixed.

How did you have these big boxes on the 1st post ?
 

GMan

Well-Known Member
Licensed User
Longtime User
3" Screen ?

Just kidding: i think the pics are cropped to show only the depending details
 

Fabrice La

Active Member
Licensed User
Longtime User
I try using the SendCMD to have the list of folder in ftp server.

If i do
FTPA.SendCMD("MLSD","")
FTPA.Close
I have
503 Bad sequence of commands.

To have the MLSD command I need to be in passive mode
FTPA.SendCMD("PASV","")
FTPA.Close
It works
227 Entering Passive Mode (10,230,52,181,229,72)

But if I do
FTPA.SendCMD("PASV","")
FTPA.SendCMD("MLSD","") '/share/")
FTPA.Close
I have
false 1

How to retrieve list ?
 

sultan87

Active Member
Licensed User
Longtime User

Hello,
Have you an example of use?
how to test the connection to the ftp server before Dowload, Upload ....
Best Regards
 

sultan87

Active Member
Licensed User
Longtime User
Hello
thank you, I look forward
Best Regards

Hello,

I grabbed this code

B4X:
Sub Globals
   'These global variables will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.
   Dim FTPA As FTP_Auto

End Sub

Sub Activity_Create(FirstTime As Boolean)
  If FirstTime Then
  FTPA.Initialize(Activity, Me, "ftpperso.free.fr", "xxxxxx", "yyyyy", "21", True, False)
  End If
End Sub

Here are the errors



WHY ?

Best Regards
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…