Back to Aurora Vision Library website
You are here: Start » Function Reference » System » FTP » Ftp_SendFile
Ftp_SendFile
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Sends a file to a remote server using FTP (File Transfer Protocol).
Syntax
C++
C#
void avl::Ftp_SendFile ( const atl::File& inFilePath, const atl::String& inHostName, const atl::String& inDestinationFileName, atl::Optional<const atl::String&> inUsername, atl::Optional<const atl::String&> inPassword, bool inUsePassiveMode, atl::Optional<int> inTimeout, bool inAllowUntrusted, const atl::Optional<atl::File>& inCaCertFile )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inFilePath | const File& | Path to a file stored on the local drive. | |||
inHostName | const String& | \"ftp://\" | URL address of the remote server. | ||
inDestinationFileName | const String& | Path where a file should be saved on a remote server. | |||
inUsername | Optional<const String&> | NIL | User name needed to log in. | ||
inPassword | Optional<const String&> | NIL | Password associated with a user name. | ||
inUsePassiveMode | bool | Protocol communication mode. May be necessary when using a firewall. | |||
inTimeout | Optional<int> | 0 - | NIL | Request timeout in seconds. | |
inAllowUntrusted | bool | False | Whether or not to allow untrusted SSL certificates. | ||
inCaCertFile | const Optional<File>& | NIL | File holding one or more certificates to verify the peer with. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty destination file name on input in Ftp_SendFile |
DomainError | Empty file path on input in Ftp_SendFile |
DomainError | Empty host name on input in Ftp_SendFile |