Hi to all
This routine returns a
java.lang.RuntimeException: Error uploading file.
550 /test/: Not a regular file
I can't understand why, if I send it with filezilla there is no problem
Can anyone give me a tip?
Thank's
This routine returns a
java.lang.RuntimeException: Error uploading file.
550 /test/: Not a regular file
I can't understand why, if I send it with filezilla there is no problem
Can anyone give me a tip?
Thank's
B4X:
Sub SaveConfig
kvs.Initialize( xui.DefaultFolder,"test.ini")
Log(shared)
[omissis ....]
If File.Exists( xui.DefaultFolder, "test.ini") Then
Dim Ftp As FTP
Ftp.Initialize("ftp", "ftp.xxxxx.it", 21, "xxxxx", "xxxx")
Ftp.PassiveMode = True
Dim sf as Object = Ftp.UploadFile( xui.DefaultFolder, "test.ini", False, "/test")
Wait For (sf) ftp_UploadCompleted (ServerPath As String, Success As Boolean)
End If
End Sub
Sub ftp_UploadCompleted (ServerPath As String, Success As Boolean)
If Success Then
Log("trasferiti")
Else
Log("errore "&ServerPath)
Log(LastException.Message)
End If
End Sub