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

Custom Validation

1 Answer 76 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 2
Joshua asked on 30 Jul 2018, 06:00 PM

Is there an documentation on how to do some custom validation? Or even better, know how to handle an exception being returned? Such as, "A file with that name already exists"?

Right now if I just throw an error in my action method, it just shows that is was unsuccessful but I cannot give it a reason for why it failed on the async save.

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 01 Aug 2018, 03:47 PM
Hello Joshua,

I can suggest you try an approach similar to the one suggested for the MVC wrappers in the following article: https://docs.telerik.com/aspnet-mvc/helpers/upload/metadata#receive-metadata-from-save-handlers.

Regards,
Peter Milchev
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
Joshua
Top achievements
Rank 2
Answers by
Peter Milchev
Telerik team
Share this question
or