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

File extension validation

1 Answer 66 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 23 Nov 2016, 03:47 AM

Hi. i would like to find out if there is an cleaner and easier way for the file extension validation other than using AllowedFileExtension.

As the allowed file extension is alot and i only want to block extension like exe, sql, bat. is there any way to achieve this?

i want the validation to automatically fired like when used with the AllowedFileExtension

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Nov 2016, 03:52 PM
Hi,

You can implement your own client-side validation mechanism using the OnClientFileUploading event. You can see this code library for more information.


Best regards,
Rumen
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
AsyncUpload
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or