大哥大姐们.
 有谁做过用ext上传文件和下载的.请教一下啊...
 给个例子.
 文件要保存到数据库中.
先谢谢了...

解决方案 »

  1.   


    //上传
    items: {
        xtype: "fileuploadfield",//先下载fileuploadfield扩展组件,Google下 form 要加上这个属性( fileUpload: true)必须
        fieldLabel: "图片",
        name: "file-path",
        width: 120,
        buttonText: '',
        buttonCfg: {
            iconCls: "upload-icon"
        }
    }
    //下载:
        down = function() {
            window.open('Download/1.xls');
        }
        <a href='#' onclick='down()'>下载</a>后台代码自己写。
      

  2.   

    用fileuploadField.
    后台怎么获取参数了?
      

  3.   

    好像是这个
     HttpPostedFile file = context.Request.Files["Filedata"];
      

  4.   

    我后台是ashx文件,所以用了context.Request.Files["Filedata"];