You are here: Start » FIL.NET » FIL.Ftp_SendFile
Sends a file to a remote server using FTP (File Transfer Protocol).
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void Ftp_SendFile ( string inFilePath, string inHostName, string inDestinationFileName, bool inUsePassiveMode )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inFilePath | string | Path to a file stored on the local drive. | ||
![]() | inHostName | string | \"ftp://\" | URL address of the remote server. Default value: "ftp://". | |
![]() | inDestinationFileName | string | Path where a file should be saved on a remote server. | ||
![]() | inUsePassiveMode | bool | Protocol communication mode. May be necessary when using a firewall. |
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 |