UploadSettingsExtensions.

SetGenerateContentType(UploadSettings, bool) Method

Summary

Generate the ContentType based on the file extension
Assembly
Cake.AWS.S3.dll
Namespace
Cake.AWS.S3
Containing Type
UploadSettingsExtensions

Syntax

public static UploadSettings SetGenerateContentType(this UploadSettings settings, bool generateContentType = true)

Parameters

Name Type Description
settings UploadSettings The sync settings.
generateContentType bool generate ContentType.

Return Value

Type Description
UploadSettings The same UploadSettings instance so that multiple calls can be chained.