I have a not fully implemented REST endpoint I'm working against. So I cannot use a simple URL as save location. I need to customize the save action. Is that possible with the upload widget.
3 Answers, 1 is accepted
0
Dimiter Madjarov
Telerik team
answered on 23 Mar 2016, 08:39 AM
Hello,
It is not clear for us what exactly are you trying to achieve. Could you elaborate further?
Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
I want to drag files on the widget. the widget should then call a method with those files as arguments so I can send them to the REST endpoint with the correct method. The "saveURL" only takes a string but I would need a method.
0
Dimiter Madjarov
Telerik team
answered on 23 Mar 2016, 09:24 AM
Hello,
Thank you for the clarification. Indeed the saveUrl configuration property only accepts a string as a parameter. Nevertheless you could set it to some string initially and then attach a handler to the upload event of the widget. You could set the saveUrl at this point, so it is possible to change it each time a file is uploaded.
Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!