HelpWizard Pages Protocols FTP/en
Protocols - File Transfer with FTP
FTP access can be implemented in two ways:
- by setting up a connection, issuing multiple requests (Get, Put or List) and then closing the connection.
- by using one of the combined Get/Put actions
The first scheme is better if you have to perform multiple operations against the ftp server. The combined actions are better if a single file or a small number of files are to be transferred.
As a first example, create a new compound action, and drag (or copy-paste) the
"FTP [Connect]
" action block
from the standard library into it (you will find it easily via the tree's "Search" tab, where you can type "ftp
" into its text field).
Freeze the "user" and "password" input pins (by double clicking on the pin); most public ftp servers will accept "guest" as user and "anonymous" as password.
Also provide a value for the hostname input pin (eg. as "ftp.somehost.org").
Then add an "FTP [Close]
" action to the diagram and connect the "ftp-link" output from the connect action to the corresponding input pin of the close action.
(click the right arrow to see the resulting diagram)