FTP.PassiveMode = True
For Each pdfFile In pdfList
If pdfFiles.EndsWith(".pdf") Then
Dim sf As Object = FTP.UploadFile(File.DirInternal, pdfFiles, False, "/Test_Folder/" & pdfFiles)
Wait For (sf) FTP_UploadCompleted (ServerPath As String, Success As Boolean)
Log(ServerPath & ": "& Success)
End If
Next
FTP.Close