Internet Direct (Indy) Version 9.0.2 Beta
TIdTrivialFTP.Put
Sends a file to a TrivialFTP server.

procedure Put(SourceStream: TStream; const ServerFile: String); overload;
procedure Put(const LocalFile: String; const ServerFile: String); overload;
Parameters
SourceStream: TStream
File name on the local file system.

const ServerFile: String
File name of the TFTP server.

Description
Put is an overloaded method to send a file to a TrivialFTP server.

The version requiring a local filename creates a TFileStream, then calls the stream version of the Put method (it is freed automatically).

The stream version of the Put method transmits the stream, firing the onWork, onWorkBegin, onWorkEnd during the process.