Class MediaFilesSelectorProperties
- Namespace
- Kentico.Components.Web.Mvc.FormComponents
- Assembly
- Kentico.Content.Web.Mvc.dll
Properties for media files selector.
public class MediaFilesSelectorProperties : FormComponentProperties<IEnumerable<MediaFilesSelectorItem>>
- Inheritance
-
objectMediaFilesSelectorProperties
- Inherited Members
- Extension Methods
Constructors
MediaFilesSelectorProperties()
Creates an instance of the MediaFilesSelectorProperties class.
public MediaFilesSelectorProperties()
Properties
AllowedExtensions
Semicolon separated list of allowed file extensions.
public string AllowedExtensions { get; set; }
Property Value
- string
Remarks
If provided, the list of extensions needs to be a subset of allowed extensions specified in 'Media file allowed extensions' site settings key value. If the property value not provided, 'Media file allowed extensions' site settings key value is used.
DefaultValue
Default value.
public override IEnumerable<MediaFilesSelectorItem> DefaultValue { get; set; }
Property Value
- IEnumerable<MediaFilesSelectorItem>
LibraryName
Media library name.
public string LibraryName { get; set; }
Property Value
- string
MaxFilesLimit
Limit of maximum number of files allowed to be selected.
public int MaxFilesLimit { get; set; }
Property Value
- int
Remarks
Following values can be used to limit the maximum number of files: 0 - unlimited 1 - single file selection n - n-files selection