The default HTTP Accept request header used by the Upload control appears to be: "text/html,application/xhtml+xml,application/xml". I'd like to be able to set that to "application/json" instead. Is that possible?
-Ryan
3 Answers, 1 is accepted
0
T. Tsonev
Telerik team
answered on 29 Aug 2012, 07:12 AM
Hello,
I'm posting the reply to your ticket for community reference.
The Accept header can't be set in browsers that do not support the HTML5 File API.
If the WebAPI service is in your control you might get away by replacing the content negotiator with your own. This will allow you to use a query string parameter to select the response type.
Kind regards,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!