Internet Direct (Indy) Version 9.0.1 Beta
TIdFTP.Put
Uploads a file to an FTP server.

procedure Put(const ASource: TStream; const ADestFile: string; const AAppend: boolean); overload;
procedure Put(const ASourceFile: string; const ADestFile: string; const AAppend: boolean); overload;
Parameters
const ASourceFile: string
File containing data to be uploaded.

const ADestFile: string = ''
Destination file name on the remote FTP server.

const AAppend: boolean = false
Default value is False.

Description
Put is an overloaded procedure that uploads data to a file with the name specified in ADestFile on the FTP server. The uploaded data can be either a stream (ASource) or a name of a file which exists on the user's computer (ASourceFile).

Setting AAppend to True causes the server to append the file being uploaded to one which already exists on the FTP server.