Internet Direct (Indy)
|
Transfers local data to a uniquely named file on the FTP server.
procedure StoreUnique( const ASource: TIdStream ); overload;
Parameters |
Description |
ASource |
Stream containing the local content for the data transfer. |
StoreUnique is an overloaded procedure used to upload the specified local content to a uniquely named file in the current directory of the remote FTP file system. StoreUnique is very similar to the Put method, but does not accept arguments related to file naming or file append processing.
ASource is a stream descendant with the local content to be transferred to the remote FTP server.
StoreUnique sends the FTP STOU command to perform the data transfer using the specified local content.
StoreUnique triggers the OnBeforePut event handler when it has been assigned for the FTP client.
During execution, StoreUnique triggers execution of the OnStatus event handler using values that indicates then the transfer is starting, has been completed, or has been aborted.
StoreUnique creates, initializes, and maintains the data channel used to perform the data transfer based on the values in the Passive, UsingExtDataPort, and TransferMode properties.
When Passive contains False, the values in DataPort, DataPortMin, and DataPortMax are also used to bind listen for the active server connection for the data channel.
StoreUnique triggers the OnDataChannelCreate event handler after creating (but prior to connecting) the data channel.
During transmission, StoreUnique uses the current value in the TransferMode property to determine if the Compressor property is used perfrom "Deflate" compression for values written on the IOHandler for the data channel. The value dmDefalte indicates that MODE Z is used for the data transfer.
StoreUnique triggers the OnDataChannelDestroy event handler after closing (but prior to freeing) the data channel.
StoreUnique triggers the OnAfterPut event handler when it has been assigned for the FTP client.
Use Abort to cancel an executing data transfer request.
Use KillDataChannel to force the data channel for the FTP session to be closed.
StoreUnique
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. |