Android Question Erro de envio FTP

LAZARO

Member
Licensed User
Longtime User
How do I get permission to upload?
I already researched and tested all possible options suggested but to no avail.
What is happening is that I can not write to the server and it returns the message: 550 acess denied
It is clear that I am not allowed to do this, but all the suggestions I have found have not worked.

upload_2019-5-6_14-18-15.png
 

DonManfred

Expert
Licensed User
Longtime User
550 acess denied
username and/or password seems to be wrong maybe?
Or the path you are accessing does not have the right permissions for you to write there

I would suggest to contact the ftp administrator and ask for help there.
 
Upvote 0

LAZARO

Member
Licensed User
Longtime User
I have another system for Windows that is registering and saving correctly on the server in the folder I want.
I've already contacted the server administrator and they told me that there is no restriction.
They also said that the restriction is on my device.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
They also said that the restriction is on my device
So please share your code with us, it will be helpful in order to help you
 
Upvote 0

zuibaf

Member
Licensed User
Este erro:
550 acess denied
indica que vc não tem acesso há algum recurso no servidor ftp, por exemplo, vc autenticou com o usuário e senha, entretanto, o usuário em questão não tem acesso há algum recurso no servidor.
Poste o código em questão, fica mais fácil identificar onde está ocorrendo o erro.
 
Upvote 0

LAZARO

Member
Licensed User
Longtime User
B4X:
   'Sub Process_Globals -> Dim FTP As FTP
   Dim TextWriter1 As TextWriter
   TextWriter1.Initialize(File.OpenOutput(File.DirInternal , "FILE.TXT", False))
   Dim RXT01 As String
   RXT01=""
   TextWriter1.WriteLine(RXT01)
   TextWriter1.Close
   FTP.PassiveMode=True
   FTP.Initialize("FTP", "ftp.xxxxxxxx.com.br", 21 , "xxxxxxxxx.com.br", "#######")
   Dim sf As Object = FTP.UploadFile(File.DirInternal, "FILE.TXT", False, "/")
   Wait For (sf) ftp_UploadCompleted (ServerPath As String, Success As Boolean)
   Log(LastException.Message)
 
Upvote 0
Top