3 Answers, 1 is accepted
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.
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
Douglas
0
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
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.