CurlAliases.

CurlUploadFile(ICakeContext, FilePath, Uri, CurlSettings) Method

Summary

Uploads the specified file to a remote host using the specified URL.
Assembly
Cake.Curl.dll
Namespace
Cake.Curl
Containing Type
CurlAliases

Syntax

public static void CurlUploadFile(this ICakeContext context, FilePath filePath, Uri host, CurlSettings settings)

Examples

CurlUploadFile(
    "file.txt",
    new Uri("ftps://host/path"),
    new CurlSettings
    {
        Username = "username",
        Password = "password"
    });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The Cake context.
filePath FilePath The path of the file to upload.
host Uri The URL of the host to upload the file to.
settings CurlSettings The settings.

Return Value

Type Description
void