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

How to restrict File types in Rad Upload dialog window?

3 Answers 182 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Aswath
Top achievements
Rank 1
Aswath asked on 05 Aug 2009, 08:12 AM
Hi,

I want to restrict user to select/browse only restricted files, like in html file upload control we have a property called 'Accept' which will take the parameters as file types with cama seperated.

ex: <input type="file" accept="image/jpg,image/png" name="file1" />

I want to know whether this property is availabe in Rad Upload control?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 05 Aug 2009, 10:38 AM
Hello Aswath,

Unfortunately this is not possible. This is one of the limitations of the <input type="file" /> HTML element.

By the way I tested the markup you have pasted and it didn't work in any browser. Does it work at your side?

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.
0
Aswath
Top achievements
Rank 1
answered on 05 Aug 2009, 01:21 PM
Hi,

Thanks for ur reply,

My code is not working. Just i want to know whether we have any property like that in Rad Upload?

Thanks..
0
Atanas Korchev
Telerik team
answered on 05 Aug 2009, 01:37 PM
Hello Aswath,

I am afraid this is not possible with RadUpload for ASP.NET Ajax because of the security restrictions of <input type="file" />. A possible workaround is to use RadUpload for Silverlight. You can check our online demo here.

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
Aswath
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Aswath
Top achievements
Rank 1
Share this question
or