File extension validation

2 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    62 posts
    Member since:
    Jul 2016

    Posted 22 Nov 2016 Link to this post

    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

  2. Rumen
    Rumen avatar
    14316 posts

    Posted 24 Nov 2016 Link to this post


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

    Best regards,
    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Back to Top