S3Aliases.

S3Upload(ICakeContext, FilePath, string, UploadSettings) Method

Summary

Uploads the specified file. For large uploads, the file will be divided and uploaded in parts using Amazon S3's multipart API. The parts will be reassembled as one object in Amazon S3.
Assembly
Cake.AWS.S3.dll
Namespace
Cake.AWS.S3
Containing Type
S3Aliases

Syntax

public static Task S3Upload(this ICakeContext context, FilePath filePath, string key, UploadSettings settings)

Attributes

Type Description
AsyncStateMachineAttribute
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The cake context.
filePath FilePath The file path of the file to upload.
key string The key under which the Amazon S3 object is stored.
settings UploadSettings The UploadSettings required to upload to Amazon S3.

Return Value

Type Description
Task