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

AllowedFileExtensions problem

4 Answers 445 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
arijit
Top achievements
Rank 1
arijit asked on 12 Feb 2009, 11:53 AM

I am using
Q3 - 2008.3.1125.35

for Rad Upload i need only certain file types
i tried 2 methods
1) 

string

 

[] allowedFileExtensions = new string[2] { ".zip", ".doc" };

 

RadUpload1.AllowedFileExtensions = allowedFileExtensions;

 

 
2)

<

 

telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".zip,.doc">

 

 

 

</telerik:RadUpload>

still not working, it is still showing the default one.
Please help

 

 

4 Answers, 1 is accepted

Sort by
0
Cherif Diallo
Top achievements
Rank 1
answered on 16 Jun 2009, 08:02 PM
I have the same problem with the Q1 2009 version 2009.2.527
0
Paul
Telerik team
answered on 17 Jun 2009, 08:15 AM
Hi there,

Please refer to the following help articles for details on the matter.

Integrated Validation
Custom Validation
Validating using an ASP.NET validator

Sincerely yours,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Cherif Diallo
Top achievements
Rank 1
answered on 17 Jun 2009, 02:33 PM
Hi Paul

event if this property doesn't validate the selected file, It should at least, when the "Choose File" dialog box pops up, set the default file extension allowed to what I setted instead of having "All(*.*)" in the dropdown combo box.
This we will minimize errors.

best Regards,
Cherif Diallo
0
Atanas Korchev
Telerik team
answered on 17 Jun 2009, 02:59 PM
Hello Cherif Diallo,

Setting the extension in the choose file dialog is not technically possible. This is one of the known limitations of the <input type="file" /> HTML element which RadUpload is using.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
arijit
Top achievements
Rank 1
Answers by
Cherif Diallo
Top achievements
Rank 1
Paul
Telerik team
Atanas Korchev
Telerik team
Share this question
or