FTP Upload

From PresenceWiki
Revision as of 14:41, 29 March 2010 by Mattpryor (Talk | contribs)

Jump to: navigation, search

FTP Upload Node

This Node instructs Presence to transfer one or more files to a remote server via FTP (File Transfer Protocol).

Possible uses include:

  • Synchronizing a remote website with the local filesystem
  • Moving files into a remote "drop folder" where another process handles them

Dragging an FTP Upload Node into your Task launches the FTP Upload editor:

http://www.international-presence.com/wikidocs/images/ftp_upload_1.gif

The Editor is split into two tabs:

General Tab

Local File Location

This is the path of the local file that is to be transferred. It can be a static value (e.g. c:\myfiles\document.txt), a variable reference (e.g. ${myfile}) or a data table column reference (e.g. :var{FILENAME}).

If a data table column reference is used and multiple (distinct) rows are present in the data table, each variant value will be used as the basis of forming the filename. For example, consider the following datatable:

FILENAME
c:\myfiles\index.html
c:\myfiles\contact.html
c:\myfiles\aboutus.html
c:\myfiles\products.html
c:\myfiles\services.html
c:\myfiles\images\logo.gif

In this instance, using the reference :var{FILENAME} will cause the FTP Upload Node to attempt to upload each of these files in turn.

FTP Connection

This is the FTP Connection Resource that the node should use to establish the connection to the remote server. This encapsulates details of the connection such as the server host name, the username and password etc. If you have not already configured the resource you can do so now by right clicking in the selection box and selecting "Create New > FTP Connection" from the pop-up menu. Note that you must first select a valid directory:

http://www.international-presence.com/wikidocs/images/ftp_upload_2.gif

This allows you to configure a new FTP Connection Resource.