I am trying to use webix uploader in mvc application but not able to save the files using send method. can you please tell me how I can send the files using c# code…
I am using url (controller/method) in upload attribute of uploader view. but not sure how to call and what i need to write in the action method?
Please find the below code snippet.
{
view: "uploader", id: "upl1", value: 'Upload file',
multiple: false, autosend: false,
name: "files",
link: "mylist", upload: "Branch/Upload"
},
{
view: "list", id: "mylist", type: "uploader",
autoheight: true, borderless: true
},
{
cols: [
{
view: "button", label: "Save", click: function () {
alert("before send");
$$("upl1").send(function (response) {
alert(response.status);
if (response)
webix.message(response.status);
});
}
},
{
view: "button", label: "Close",
click: "$$('upload_document').close();"
}
]
}