Kendo Upload with complex obejct as data

72 views Asked by At

I've read this post but it doesn't seem to be working. Is there really no way to pass data or am I missing something?

C#

public async Task<HttpResponseMessage> ApiMethod(Person person) 
{
    //...do stuff
}

javascript

$("#files").kendoUpload({
    async: {
        saveUrl: 'www.api.com/controller/ApiMethod',
        autoUpload: true,
    },
    upload: function (e) {
        e.data = { 
            person: {
                FirstName: "First",
                LastName: "Last",
            },
        };
    },
});

When I check the Network tab in developer tools, I don't see any data being passed through.

0

There are 0 answers