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

Receiving metadata in the "save handler"

2 Answers 91 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Curt Rabon
Top achievements
Rank 1
Veteran
Curt Rabon asked on 15 Nov 2012, 04:12 PM
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 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 20 Nov 2012, 04:05 PM
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!
0
Roopa
Top achievements
Rank 1
answered on 22 Nov 2012, 10:28 AM
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
Tags
Upload
Asked by
Curt Rabon
Top achievements
Rank 1
Veteran
Answers by
Daniel
Telerik team
Roopa
Top achievements
Rank 1
Share this question
or