I have a jqgrid and I'd like to upload a file, I got the following code
colModel: [
{ name: "id", index:"id", key: true,width: 30,editable: false },
{ name: "name", index:"name", width: 100,editable: true },
{ name: "fileToUpload",
editoptions: {
enctype: "multipart/form-data"
},
edittype:'file',
index: 'fileToUpload',
width: 150,
align: "left",
editable: true },
],
and I use the function like in jqgrid - upload a file in add/edit dialog
My problem is that I don't know how to use the url file of the ajaxfileupload function to save this file in a database , Can anyone show me an example??
Thanks!