Difference between revisions of "FTP Upload"

From PresenceWiki
Jump to: navigation, search
(FTP Connection)
Line 47: Line 47:
  
 
This allows you to configure a new [[FTP Connection Resource]].
 
This allows you to configure a new [[FTP Connection Resource]].
 +
 +
==== Remote File Location ====
 +
 +
This is the remote directory that Presence should upload the selected files to. As with the local file location, it can be a static value, a variable reference or a data table column reference.
 +
 +
Clicking the "Browse" button will connect to the FTP server and display a tree-view of the remote directory structure to better allow you to select the correct path.
 +
 +
http://www.international-presence.com/wikidocs/images/ftp_browse.gif
 +
 +
==== Use Binary Transfer Mode ====
 +
 +
This tells the FTP client that the files being transferred are Binary and prevents the server from attempting to modify newline characters.

Revision as of 14:46, 29 March 2010

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.

Remote File Location

This is the remote directory that Presence should upload the selected files to. As with the local file location, it can be a static value, a variable reference or a data table column reference.

Clicking the "Browse" button will connect to the FTP server and display a tree-view of the remote directory structure to better allow you to select the correct path.

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

Use Binary Transfer Mode

This tells the FTP client that the files being transferred are Binary and prevents the server from attempting to modify newline characters.