edtFTPnet/Express - Class Reference

FTPConnection.Uploading Event

Occurs when a file is about to be uploaded to the server.

public event FTPFileTransferEventHandler Uploading;

Event Data

The event handler receives an argument of type FTPFileTransferEventArgs containing data related to this event. The following FTPFileTransferEventArgs properties provide information specific to this event.

Property Description
Appended Indicates whether or not data was appended to the remote file.
Bytes Reference to byte-array if LocalDataType is ByteArray.
Cancel Cancel transfer.
Exception The exception thrown if a transfer failed.
FileSize Size of remote file (see remarks)
LocalDataType Type of local data source/destination.
LocalDirectory Name of the local directory (not including file-name).
LocalFile Name of the local file (without path).
LocalPath Path of local file if LocalDataType is File.
RemoteDirectory Full path of remote directory.
RemoteFile Name of remote file.
RemotePath Full path of remote file.
Stream Reference to Stream if LocalDataType is Stream.
Succeeded Indicates whether or not the transfer succeeded.

Remarks

The FTPFileTransferEventArgs argument passed to handlers has a Cancel property, that, if set to true will result in the transfer being cancelled.

See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace