Android Question FTP upload problem

taylorw

Active Member
Licensed User
Hi all, i have a problem is when i using my phone upload image it's can upload, but when i use customer phone to upload it can't upload without error.
My code is here.

B4X:
dim FTP as FTP

FTP.Initialize("FTP", "domain", 21, "user", "password")
FTP.PassiveMode = True

FTP.UploadFile(Image_Dir, Image_Name, False, "/Folder/" & Update_Item_Code & ".jpg")

Sub FTP_UploadProgress (ServerPath As String, TotalUploaded As Long, Total As Long)
    Dim s As String
    s = "Uploaded " & Round(TotalUploaded / 1000) & "KB"
    If Total > 0 Then s = s & " out of " & Round(Total / 1000) & "KB"
    Log(s)
End Sub

Sub FTP_UploadCompleted (ServerPath As String, Success As Boolean)
    Log(ServerPath & ", Success=" & Success)
    If Success = False Then
        ToastMessageShow("Image Upload Fail.",True)
    Else
        Image_Upload_Done = True
    End If
End Sub
 

taylorw

Active Member
Licensed User
Yes DonManfred, so i confusion.Because i don't know why, i try to upload in my customer phone but it run into here <ToastMessageShow("Image Upload Fail.",True)>.
 
Upvote 0

taylorw

Active Member
Licensed User
Hi Erel, i get the error message.Below is that two error message.
<550 Access is denied. >
<550 The process cannot access the file because it is being used by another process. >
I try on another phone, but only this phone get this error,
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…