---
name: "FtpPut"
section: "3"
platform: "linux"
package: "ftplib-dev"
version: "3.1-1-9"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/FtpPut"
---

# FtpPut(3)

Send a file to the remote system.

## NAME

FtpPut - Send a file to the remote system.

## SYNOPSIS

**#include \<ftplib.h\>**\

**int FtpPut(const char \****input***, const char \****path***,**

**char** *mode***, netbuf \****nControl***);**

## PARAMETERS

- **input**

  Specifies the name of a local file to be transfered to the server.

- **path**

  Specifies the name to be given to the file on the remote system.

- **mode**

  Specifies the transfer mode as FTPLIB\_ASCII or FTPLIB\_IMAGE.

- **nControl**

  A handle returned by FtpConnect().

## DESCRIPTION

FtpPut() transfers a local file to the remote system.

## RETURN VALUE

Returns 1 if successful or 0 on error.
