Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentSettingsExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class ContentSettingsExtensions

    Methods

    View Source

    GetConfig(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
    ContentSettings contentSettings
    System.String propertyTypeAlias

    The property type alias.

    Returns
    Type Description
    ImagingAutoFillUploadField

    The auto-fill configuration for the specified property alias, or null.

    View Source

    IsFileAllowedForUpload(ContentSettings, String)

    Determines if file extension is allowed for upload based on (optional) white list and black list held in settings. Allow upload if extension is whitelisted OR if there is no whitelist and extension is NOT blacklisted.

    Declaration
    public static bool IsFileAllowedForUpload(this ContentSettings contentSettings, string extension)
    Parameters
    Type Name Description
    ContentSettings contentSettings
    System.String extension
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetConfig(ContentSettings, String)
      • IsFileAllowedForUpload(ContentSettings, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX