Click or drag to resize
KaxUploadAllowedFileExtensions Property
Gets or sets the allowed file extensions for uploading.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.Attribute)]
public string[] AllowedFileExtensions { get; set; }

Property Value

Type: String
The default value is empty string array. In order to check for multiple file extensions you should set an array of strings containing the allowed file extensions for uploading.
Remarks

Set this property to empty array of strings in order to prevent the file extension checking.

Note that the file extensions must include the dot before the actual extension. See the example below.

Examples
This example demonstrates how to set multiple allowed file extensions in a KaxUpload control.
string[] allowedFileExtensions = new string[3] {".zip", ".doc", ".config"};
KaxUpload1.AllowedFileExtensions = allowedFileExtensions;
See Also