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

Kendo Upload to ODATA Service....

1 Answer 77 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 20 May 2013, 03:14 PM
I am looking for an example of using Kedo Upload, and placing the file/metada in an ODATA data service.

Ideally I would like to relate it to another parent record as well.

Thanks in advance.


1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 22 May 2013, 12:14 PM
Hello,

We haven't received such requests before and I did a quick research on the subject.

The Kendo Upload sends the files to the server in a request that looks pretty much like a regular form POST (multipart/form-data). If OData can handle this, then it should work with the Upload.

The problem is that information on handling binary blobs in OData is scarce. The only resources I found are:

The other option is to send the encoded file content as part of a regular OData request. This is guaranteed not to work in IE though as you can't read the file on the client. It lacks support for the File API.

With this in mind I'd say that support for OData is possible in theory, but we really need to see a working example that we can follow. 

Regards,
Tsvetomir Tsonev
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
Jack
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or