KaxUploadAllowedFileExtensions Property |
Gets or sets the allowed file extensions for uploading.
Namespace: Kettic.AspNet.ControlsAssembly: 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; }
<PersistenceModeAttribute(PersistenceMode.Attribute)>
Public Property AllowedFileExtensions As String()
Get
Set
public:
[PersistenceModeAttribute(PersistenceMode::Attribute)]
property array<String^>^ AllowedFileExtensions {
array<String^>^ get ();
void set (array<String^>^ value);
}
[<PersistenceModeAttribute(PersistenceMode.Attribute)>]
member AllowedFileExtensions : string[] with 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.
RemarksSet 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;
Dim allowedFileExtensions As String() = New String(2) {".zip", ".doc", ".config"}
KaxUpload1.AllowedFileExtensions = allowedFileExtensions
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also