You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > AssetControl Class > AssetControl Properties > OverrideExtension
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
AssetControl.OverrideExtension Property

Allows you to restrict the type of asset that can be uploaded by its extension. For example, to restrict the control to uploading Word documents, enter doc in the property. 

Important: When using this property, enter only the extension’s letters not the wildcard (*) or the dot (.). 

You can add multiple extensions by creating a comma separated list of extensions. Ektron recommends limiting the list to five extensions.

C#
[Category("Ektron")]
[DefaultValue("0")]
[Description("Allows you to restrict the type of asset that can be uploaded by its extension. For example, to restrict the control to uploading Word documents, enter doc in the property. Important: When using this property, enter only the extension�s letters not the wildcard (*) or the dot (.).")]
public string OverrideExtension;
Visual Basic
<Category("Ektron")>
<DefaultValue("0")>
<Description("Allows you to restrict the type of asset that can be uploaded by its extension. For example, to restrict the control to uploading Word documents, enter doc in the property. Important: When using this property, enter only the extension�s letters not the wildcard (*) or the dot (.).")>
Public Property OverrideExtension() As string
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!