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

Validating N number of files to be uploaded

1 Answer 529 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 10 Sep 2018, 04:37 PM
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?

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 12 Sep 2018, 11:02 AM
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:
- https://www.telerik.com/forums/how-to-restrict-the-number-of-files-for-a-single-upload

I hope this helps.

Regards,
Neli
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.
Tags
Upload
Asked by
Juan
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or