Dear Team,
We are using RadCloudUpload control for uploading Images and Videos. The same control should allow both Image and Video upload.
But if user is uploading an Image, file size should be restricted to 10MB, for Video upload file max file size restriction should be 200MB.
Is there a way to implement file size validation on client side based on content type? Please suggest. Thanks in advance.
<
telerik:RadCloudUpload
ID
=
"RadCloudUpload1"
runat
=
"server"
CssClass
=
"btn btn-green center-block"
OnClientUploadFailed
=
"onClientUploadFailed"
OnClientValidationFailed
=
"onClientUploadFailed"
OnFileUploaded
=
"RadCloudUpload1_FileUploaded"
DropZones
=
"#dragDrop"
OnClientFilesUploaded
=
"fileUploaded"
ProviderType
=
"Azure"
MaxFileSize
=
"10486000"
AllowedFileExtensions
=
".jpg,.jpeg,.png,.gif,.mpg,.mp4,.avi,.mov,.qt,.3gp,.m4v,.mpg,.mpeg,.mp4v,.h264,.wmv,.mpg4,.movie,.m4u,.flv,.dv,.mkv,.mjpeg,.asf,.ogv,.mts,.mvi"
MultipleFileSelection
=
"Automatic"
>
</
telerik:RadCloudUpload
>