CurlAliases.

CurlUploadFile(ICakeContext, FilePath, Uri) 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)

Examples

CurlUploadFile("file.txt", new Uri("http://host/path"));

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.

Return Value

Type Description
void