This is a migrated thread and some comments may be shown as answers.

RadUpload

3 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Douglas
Top achievements
Rank 1
Douglas asked on 14 Apr 2011, 07:57 AM
How can i validate the *.mp4 format only in RadUpload?

I tried like AllowedFileExtenstion=".mp4";  But it doesnt work for me.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Apr 2011, 11:04 AM
Hello Douglas,

The same scenario is working as expected at my end and I am not quite sure about the way that you are handling the invalid files. Please check out the following documentation which explains more on the Integrated Validation.
Integrated Validation.

Another suggestion is to use CustomValidator, it supports both client-side and server-side validation.
From client side the validation function can use the validateExtensions() client-side method to validate file extensions on the client.
And from server side you can use the InvalidFiles count to validate the extensions.

Take look at the following help article for more on this.
Client Side Validation

Thanks,
Shinu.
0
Douglas
Top achievements
Rank 1
answered on 14 Apr 2011, 01:05 PM
It works perfect for validating .mp3, .jpg, .doc and other format. But if I have .mp4, then the file always goes to invalidfile list. Can you send me a sample code for validating it?

Douglas
0
Peter Filipov
Telerik team
answered on 18 Apr 2011, 07:27 PM
Hello Douglas,

I am sending you a sample project that is validating .mp4 files. If a file is with bigger size than MaxFileSize property, it is causing invalidation too.

All the best,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
Douglas
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Douglas
Top achievements
Rank 1
Peter Filipov
Telerik team
Share this question
or