Ftp.upload

Upload a file to the server.

The name of the local file is relative to the current working directory of your application, and the remote path is relative to the current directory of the FTP server.

class Ftp
upload
(
const(char)[] localFile
,
const(char)[] remotePath
,
)

Parameters

localFile
Type: const(char)[]

Path of the local file to upload

remotePath
Type: const(char)[]

Where to put the file on the server

mode

Transfer mode

Return Value

Type: Response

Server response to the request.

Meta