You are here: Start » AVL.NET » AVL.Ftp_SendFile Method

AVL.Ftp_SendFile Method

Sends a file to a remote server using FTP (File Transfer Protocol).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void Ftp_SendFile(
	string inFilePath,
	string inHostName,
	string inDestinationFileName,
	string inUsername,
	string inPassword,
	bool inUsePassiveMode
)

Parameters

Name Type Range Default Description
inFilePathstringPath to a file stored on the local drive.
inHostNamestring\"ftp://\"URL address of the remote server. Default value: \"ftp://\".
inDestinationFileNamestringPath where a file should be saved on a remote server.
inUsernamestringUser name needed to log in. Default value: atl::NIL, or null.
inPasswordstringPassword associated with a user name. Default value: atl::NIL, or null.
inUsePassiveModeboolProtocol communication mode. May be necessary when using a firewall.

Errors

Error type Description
DomainError Empty file path on input in Ftp_SendFile
DomainError Empty host name on input in Ftp_SendFile
DomainError Empty destination file name on input in Ftp_SendFile

See also