Search Results for

    Show / Hide Table of Contents
    View Source

    Class FileUploadPropertyEditor

    Defines the file upload property editor.

    Inheritance
    object
    DataEditor
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    [DataEditor("Umbraco.UploadField", ValueEditorIsReusable = true)]
    public class FileUploadPropertyEditor : DataEditor, IDataEditor, IDiscoverable, IMediaUrlGenerator

    Constructors

    View Source

    FileUploadPropertyEditor(IDataValueEditorFactory, IIOHelper)

    Initializes a new instance of the FileUploadPropertyEditor class.

    Declaration
    public FileUploadPropertyEditor(IDataValueEditorFactory dataValueEditorFactory, IIOHelper ioHelper)
    Parameters
    Type Name Description
    IDataValueEditorFactory dataValueEditorFactory
    IIOHelper ioHelper

    Methods

    View Source

    CreateConfigurationEditor()

    Creates a configuration editor instance.

    Declaration
    protected override IConfigurationEditor CreateConfigurationEditor()
    Returns
    Type Description
    IConfigurationEditor
    View Source

    CreateValueEditor()

    Creates the corresponding property value editor.

    Declaration
    protected override IDataValueEditor CreateValueEditor()
    Returns
    Type Description
    IDataValueEditor

    The corresponding property value editor.

    View Source

    TryGetMediaPath(string?, object?, out string)

    Tries to get a media path for a given property editor alias

    Declaration
    public bool TryGetMediaPath(string? propertyEditorAlias, object? value, out string mediaPath)
    Parameters
    Type Name Description
    string propertyEditorAlias

    The property editor alias

    object value

    The value of the property

    string mediaPath

    The media path

    Returns
    Type Description
    bool

    True if a media path was returned

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX