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

how to return user-defined strings to signify success?

1 Answer 67 Views
Upload
This is a migrated thread and some comments may be shown as answers.
ltxx
Top achievements
Rank 1
ltxx asked on 02 Dec 2015, 09:36 AM

Now "KendoUI upload" returns an empty string to signify success, but I want to return user-defined strings to  signify success? please give example!

 

Yours sincercely,

Pansh

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 02 Dec 2015, 10:03 AM

Hello Pansh,

In order to achieve this you should return the metadata from the save handler as JSON with Content-Type set to "text/plain". The approach is demonstrated on the following documentation page.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Upload
Asked by
ltxx
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or