Hi community I am having problems downloading or uploading files with the "NET" library via an FTP. I followed the tutorial dedicated to FTP the compiler does not return any errors, even the 'Success' statement sometimes returns nothing. Use cPanel to manage the files of a domain. Are there common problems with these situations?
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			
			
				B4X:
			
		
		
		 Sub Activity_Create (FirstTime As Boolean)
 Activity.LoadLayout ( "1")
 Se FirstTime Quindi
        ftp.Initialize ("ftp", "host", 21, "[email protected]", "xxxxx")
    End If
End Sub
			
				B4X:
			
		
		
		 Sub FTP_DownloadProgress (ServerPath As string, TotalDownloaded Long, Total As Long)
    Dim s As string
    s = "downloaded" e Round (TotalDownloaded / 1000) e "KB"
    if total> 0, Then s = s & "out of" & Round (Total / 1000) & "KB"
    Log (s)
End Sub
			
				B4X:
			
		
		
		Sub FTP_DownloadCompleted secondario (ServerPath come stringa, successo come booleano)
    Log (ServerPath & ", Success =" & Success)
    Se Success = False, allora Log (LastException.Message)
End Sub
Sub FTP_UploadCompleted secondario (ServerPath come stringa, successo come booleano)
    Log (ServerPath & ", Success =" & Success)
    ToastMessageShow (ServerPath & ", Success =" & Success, True)
    Se Success = False Then
        Log (LastException.Message)
        ToastMessageShow (ServerPath & ", Success" & Success, True)
    Finisci se
End Sub [/ CODE]
Sub BTInviaOrdine_Click
    ftp.UploadFile (File.DirRootExternal, "file1.pdf", True, "/ xxxx / xxxxx / xxxxxx.com / xxxxx")
End Sub
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		