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

How to limit file types uploaded

3 Answers 249 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 13 Aug 2015, 03:02 PM

Hi,

In my aspx, I have tried setting 'AllowedFileExtensions='.xls,.xlsx' and <FileFilters><FileFilter Exntensions='xls,xlsx'> but neither seem to have any effect - please advise.

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 13 Aug 2015, 03:33 PM
Hi,

You may browse the RadAsyncUpload Overview and Validation demos which show how file extensions validation could be implemented. I hope that they will get you in the right direction.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 14 Aug 2015, 06:07 AM
Thanks Dimitar - so if I understand correctly it is not possible to limit the type of file that is selected, instead I need to ​validate after the file is selected and then ​handle the types from there on?
0
Accepted
Dimitar
Telerik team
answered on 14 Aug 2015, 06:48 AM
Hi,

Yes, this is correct. You cannot limit the type of file a user may try to select from the popup OS window. But you may validate if the chosen file matches the required file type, specified by the allowed extensions.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AsyncUpload
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Dimitar
Telerik team
Al
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or