how to use kendo ui upload file in codegniter, simply i upload file in codigniter but in add and edit form it cant work i mean it cant save in particular directory.
<input name="files" id="files" type="file" />
$(document).ready(function () {
$("#files").kendoUpload({
async: {
saveUrl: "<?php echo base_url(); ?>upload_plan_image",
removeUrl: 'remove.php',
autoUpload: true
}
});
});
$("#grid").kendoGrid({
dataSource: dataSource,
pageable: true,
height: 400,
toolbar: [{name:"create",text:"Add new Plan"}],
columns: [
{field:"plan_img_file", title:"PlanImgFile"},
{command: ["edit", "destroy"], title: " ", width: "210px",title:"Action" }],
groupable:true,
editable: {
mode: "popup",
destroy: true,
confirmation: "Are you sure you want to remove this test member?"
}
});
<input name="files" id="files" type="file" />
$(document).ready(function () {
$("#files").kendoUpload({
async: {
saveUrl: "<?php echo base_url(); ?>upload_plan_image",
removeUrl: 'remove.php',
autoUpload: true
}
});
});
$("#grid").kendoGrid({
dataSource: dataSource,
pageable: true,
height: 400,
toolbar: [{name:"create",text:"Add new Plan"}],
columns: [
{field:"plan_img_file", title:"PlanImgFile"},
{command: ["edit", "destroy"], title: " ", width: "210px",title:"Action" }],
groupable:true,
editable: {
mode: "popup",
destroy: true,
confirmation: "Are you sure you want to remove this test member?"
}
});