Difference between revisions of "FTP Upload"

From PresenceWiki
Jump to: navigation, search
 
(Local File Location)
Line 20: Line 20:
  
 
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:
 
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:
 +
 +
{| border="1" cellspacing="0" cellpadding="5" align="center"
 +
! 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. 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:

Revision as of 14:31, 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. 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: