Custom XMLHTTPRequest on save

4 posts, 0 answers
  1. con_ssc
    con_ssc avatar
    87 posts
    Member since:
    Apr 2014

    Posted 22 Mar Link to this post

    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.
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 23 Mar Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. con_ssc
    con_ssc avatar
    87 posts
    Member since:
    Apr 2014

    Posted 23 Mar in reply to Dimiter Madjarov Link to this post

    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.
  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 23 Mar Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready