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 const(char)[]

Path of the local file to upload

remotePath const(char)[]

Where to put the file on the server

mode TransferMode

Transfer mode

Return Value

Type: Response

Server response to the request.

Meta