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

Per file error hint (Async)

2 Answers 57 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 02 Dec 2014, 05:34 PM
I'm successfully using the Upload widget to push files on a an Azure storage.
Accept only Excel file of a decent size, so sometimes, the controller on the server side will send an error message in the request response.
Now I can catch this with the 'error' event on client and would like to change the title attribute of the warning icon to show the error message.
How should I do that ?

BTW, using ASP.NET MVC 4, multiselect enabled & asynchonous upload.

Any hint wellcomed.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 03 Dec 2014, 10:13 AM
Hello Christophe,


You could use the unique uid attribute of the file to find it in the list and set the custom title attribute. Here is a small example, that demonstrates the approach.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Christophe
Top achievements
Rank 1
answered on 03 Dec 2014, 10:23 AM
I was edging to this.
Thanks for your confirmation.
Tags
Upload
Asked by
Christophe
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Christophe
Top achievements
Rank 1
Share this question
or