Android Question Using FTP over SSL with CloseNow?

ernschd

Active Member
Licensed User
Longtime User
Hi,

my App has to offer the possibility of interrupting a FTP Upload. So i used this code:
B4X:
If Msgbox2("Do you want to cancel the Upload?", "Cancel Upload?", "OK", "Cancel", "", Null) = DialogResponse.POSITIVE Then
    FTP.CloseNow
    FTP_CommandCompleted("", False, 0, "")
    Dim FTP As FTP
End If
This works well until i tried to use SSLExplicit. This results in an error in the Log:

How can i abort the running FTP-Transmission over SSL?

Thanks.
 

ernschd

Active Member
Licensed User
Longtime User
But when i'm transferring a big file and want to interrupt the upload, FTP.Close waits until the upload is finished, and thats not what the user expects.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…