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

radUpload Control --- Showing the validation message while selecting the invalid File Type

1 Answer 149 Views
Announcements
This is a migrated thread and some comments may be shown as answers.
Rahul Nasa
Top achievements
Rank 1
Rahul Nasa asked on 23 Oct 2009, 10:14 AM
Hi,

Can somebody help me in showing the message that particular file type is not valid while selecting particular file type in the Open window.


For Example there is  a property AllowedFileExtensions , is there any way to stop the user from selecting particular file type?

<

 

radU:RadUpload ID="radEvaluationFileupload" runat="server" Skin="Vista" Width="150px" InitialFileInputsCount="1" AllowedFileExtensions=".doc,.txt"

 

 

ControlObjectsVisibility="None" TargetPhysicalFolder="C:\UploadFiles" SkinsPath="~/RadControls/Upload/Skins"

 

 

MaxFileInputsCount="1" />

 



Regards,
Rahul Nasa
rahulnasa@gmail.com

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 29 Oct 2009, 11:02 AM
Hi Rahul Nasa,

You need to use a little bit of JavaScript to achieve this goal. Please consult with this help article for more information on the topic.

Regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Announcements
Asked by
Rahul Nasa
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or