Receiving metadata in the "save handler"

3 posts, 0 answers
  1. Curt Rabon
    Curt Rabon avatar
    45 posts
    Member since:
    Dec 2008

    Posted 15 Nov 2012 Link to this post

    See doc here:
    http://docs.kendoui.com/getting-started/web/upload/metadata#receiving-metadata-from-the-save-handler

    What does the example code listed in this section of the doc have to do with receiving the metadata???  ...seems like you pasted the wrong example.  How about showing us how to receive the metadata.  I'm guessing it will be in the querystring?

    Thanks.
  2. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 20 Nov 2012 Link to this post

    Hello Curt Rabon,

    I am not sure if I understand correctly the issue. The "Receiving metadata from the save handler" example shows how to receive data on the client form the server. As demonstrated in the documentation you should return JSON from the server and use the response event argument in the success event. 
    If you wish to receive the data on the server when uploading the file, you should use the event argument data field in the upload event. The data will be sent along with the files as form data.

    Regards,
    Daniel
    the Telerik team
    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. Roopa
    Roopa avatar
    1 posts
    Member since:
    Nov 2012

    Posted 22 Nov 2012 Link to this post

    Hello ,

    I am using APIController as save handler which is having post method.

     - Is there any way to access "async.savefield" property value in post method?
     - How to send file contents as input ? - accepting input as HttpPostedFileBase throws MediaTypeFormatter Exception.

    Thanks
Back to Top