[red]Indy IdFtp.Put 帮助,注意红色部分[/red]
Uploads a file to an FTP server.
procedure Put(const ASource: TStream; const ADestFile: string = ''; const AAppend: boolean = false); overload;
procedure Put(const ASourceFile: string; const ADestFile: string = ''; const AAppend: boolean = false); overload;
Parameters
const ASource: TStream
Contains data to be uploaded.
const ADestFile: string = ''
Destination file name on the remote FTP server.
[red]const AAppend: boolean = false
Default value is False.[/red]
const ASourceFile: string
File containing data to be uploaded.
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).
[red]Setting AAppend to True causes the server to append the file being uploaded to one which
already exists on the FTP server.[/red]