;
; ------------------------------------------------------------
;
; PureBasic - Ftp example file
;
; (c) Fantaisie Software
;
; ------------------------------------------------------------
;
InitNetwork()
If OpenFTP(0, "127.0.0.1", "test", "test", 0)
Result = SendFTPFile(0, OpenFileRequester("Выберите файл для отправки", "", "*.*", 0), "purebasic_sent.file", 1)
Repeat
Debug FTPProgress(0)
Delay(300)
Until FTPProgress(0) = -3 Or FTPProgress(0) = -2
Debug "завершено"
Else
MessageRequester("Ошибка", "Не удается подключиться к FTP серверу")
EndIf