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

Custom XMLHTTPRequest on save

3 Answers 66 Views
Upload
This is a migrated thread and some comments may be shown as answers.
CS
Top achievements
Rank 2
CS asked on 22 Mar 2016, 01:30 PM
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

Sort by
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!
 
0
CS
Top achievements
Rank 2
answered on 23 Mar 2016, 08:40 AM
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!
 
Tags
Upload
Asked by
CS
Top achievements
Rank 2
Answers by
Dimiter Madjarov
Telerik team
CS
Top achievements
Rank 2
Share this question
or