Validating N number of files to be uploaded

2 posts, 0 answers
  1. Juan
    Juan avatar
    1 posts
    Member since:
    Sep 2018

    Posted 10 Sep 2018 Link to this post

    I have to upload 5 (min and max) .txt  files at a time, I'm trying to validate throught JS the minium or max number of files and send a message, but with the validation events that are there i can't actually do that. Is there any other way? Or a way to create a custom validation for uploading files?
  2. Neli
    Neli avatar
    422 posts

    Posted 12 Sep 2018 Link to this post

    Hi Juan,

    You could subscribe to the upload or select event of the Upload widget and check the count of the files. In case the files are more or less than it is required, you could prevent the uploading. Please refer to the following thread from our Forum where such issue is discussed:

    I hope this helps.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top