Class ContentSettingsExtensions
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class ContentSettingsExtensions
Methods
View SourceGetConfig(ContentSettings, String)
Gets the auto-fill configuration for a specified property alias.
Declaration
public static ImagingAutoFillUploadField GetConfig(this ContentSettings contentSettings, string propertyTypeAlias)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentSettings | |
System. |
propertyTypeAlias | The property type alias. |
Returns
Type | Description |
---|---|
Imaging |
The auto-fill configuration for the specified property alias, or null. |
IsFileAllowedForUpload(ContentSettings, String)
Determines if file extension is allowed for upload based on (optional) allow list and deny list held in settings. Disallowed file extensions are only considered if there are no allowed file extensions.
Declaration
public static bool IsFileAllowedForUpload(this ContentSettings contentSettings, string extension)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentSettings | The content settings. |
System. |
extension | The file extension. |
Returns
Type | Description |
---|---|
System. |
|