Internet Direct (Indy)
Home
PreviousUpNext
TIdFTP.SiteToSiteUpload Method

Implements site-to-site (or FXP) data transfers.

Pascal
procedure SiteToSiteUpload(
    const AToSite: TIdFTP; 
    const ASourceFile: String; 
    const ADestFile: String = ''
);
Parameters 
Description 
AToSite 
FTP client with the connection for the receiving FTP server.
 
ASourceFile 
file name on the sending FTP server.
 
ADestFile 
file name on the receiving FTP server. 

SiteToSiteUpload is a procedure that implements support for FTP site-to-site (or FXP) data transfers. 

AToSite contains the connection to the FTP server receiving the file specified in ASourceFile. 

ASourceFile contains the file name on the sending FTP server, and can contain optional absolute or relative path information. 

ADestFile contains the file name on the receiving FTP server, and can contain optional absolute or relative path information. When ADestFile is omitted, the file name in ASourceFile is used as the file name on the receiving FTP server. 

In SiteToSiteUpload, the FTP client is the connection to the FTP server that transfers the data in the file indicated by ASourceFile. 

SiteToSiteUpload supports the use of TLS (Transport Layer Security) when initializing the data channels in the source and destination FTP servers. 

SiteToSiteUpload uses the FTP PORT command (or EPRT when UsingExtDataPort contains True) to instruct the receiving FTP server to actively listen for a data channel connection from the sending FTP server in AFromSite. When Passive contains True, the actions are reversed and the receiving FTP server uses the FTP PASV command (or EPSV when UsingExtDataPort contains True) to accept the connection from the sending server. 

During data transfer, SiteToSiteUpload uses the FTP STOR and RETR commands to begin the data transfer process on the receiving and sending FTP servers. 

Please note that not all FTP servers implement the FXP or Site-to-Site aspects of the FTP protocol. 

Use SiteToSiteDownload to transfer data to a specified server using an exisiting server connection.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.