使用Jqgrid和Ajaxfileupload上传文件

时间:2013-07-25 10:20:09

标签: php javascript jquery jqgrid

我正在使用jqgrid,我想上传一个文件(图片和pdf)。我见过很多例子,但没有...我想做un ajaxfileupload。这是我的代码,

 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 },
    ], 

我有四天尝试并寻找信息和tutoriasl !!帮我!

1 个答案:

答案 0 :(得分:0)

可能重复:

  

File upload with jqgrid in PHP

我希望这会奏效。