KaxUploadAllowedMimeTypes Property |
Gets or sets the allowed MIME types 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[] AllowedMimeTypes { get; set; }
<PersistenceModeAttribute(PersistenceMode.Attribute)>
Public Property AllowedMimeTypes As String()
Get
Set
public:
[PersistenceModeAttribute(PersistenceMode::Attribute)]
property array<String^>^ AllowedMimeTypes {
array<String^>^ get ();
void set (array<String^>^ value);
}
[<PersistenceModeAttribute(PersistenceMode.Attribute)>]
member AllowedMimeTypes : string[] with get, set
Property Value
Type:
String
The default value is empty string array. In order to check for multiple mime
types you should set an array of strings containing the allowed MIME types
for uploading.
RemarksSet this property to string.Empty in order to prevent the
mime type checking.
Examples
This example demostrates how to set multiple allowed MIME types to a KaxUpload
control.
string commaSeparatedMimeTypes = "application/octet-stream,application/msword,video/mpeg";
string[] allowedMimeTypes = commaSeparatedMimeTypes.Split(',');
KaxUpload1.AllowedMimeTypes = allowedMimeTypes;
Dim commaSeparatedMimeTypes As String = "application/octet-stream,application/msword,video/mpeg"
Dim allowedMimeTypes As String() = commaSeparatedMimeTypes.Split(",")
KaxUpload1.AllowedMimeTypes = allowedMimeTypes
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