Hello, I am sending data (onUpload event) to webapi, for example:
function onUpload (e) {
e.XMLHttpRequest.setRequestHeader(key, value);
}
Also, I need to send another data when the file is removed (onRemove event), but the paramater "e" in this event doesn't have the object XMLHttpRequest, that why, I can not use the function e.XMLHttpRequest.setRequestHeader(key, value);
I am using the latest version of Kendo UI Controls
What is your suggestion?
function onUpload (e) {
e.XMLHttpRequest.setRequestHeader(key, value);
}
Also, I need to send another data when the file is removed (onRemove event), but the paramater "e" in this event doesn't have the object XMLHttpRequest, that why, I can not use the function e.XMLHttpRequest.setRequestHeader(key, value);
I am using the latest version of Kendo UI Controls
What is your suggestion?
5 Answers, 1 is accepted
0
Hello Ever,
The XMLHttpRequest parameter is currently not exposed in the remove event of the Upload widget. As a workaround you could use jQuery Global Ajax Event Handlers. Please excuse us for the caused inconvenience.
Regards,
Dimiter Madjarov
Telerik
The XMLHttpRequest parameter is currently not exposed in the remove event of the Upload widget. As a workaround you could use jQuery Global Ajax Event Handlers. Please excuse us for the caused inconvenience.
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

Ever
Top achievements
Rank 1
answered on 28 Jan 2015, 02:51 PM
Hello Dimiter, I tried with jQuery ajax events and it worked, thanks for helping me out.
0
Hello Ever,
Thanks for the update. I am glad the information was helpful.
Regards,
Dimiter Madjarov
Telerik
Thanks for the update. I am glad the information was helpful.
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

Damian
Top achievements
Rank 1
answered on 10 Nov 2015, 01:25 PM
Hi,
Is there any plan to expose XMLHttpRequest parameter in the remove event?
0
Hello Damian,
We have logged this feature request in our future development plans, but cannot currently state an exact time-span on when it will be implemented.
Regards,Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!