xtype : 'textfield',
         allowBlank : false,
         blankText : '上传LOGO不能为空',
         fieldLabel : 'logo图片',
         name : 'logoFile',
         inputType : 'file'// 文件类型让allowblank为ture

解决方案 »

  1.   

    完整是:
     var brandForm = new Ext.FormPanel({
             labelSeparator : ":",
             frame:true,
             border:false,
             fileUpload : true,
             items : [{
             xtype : 'textfield',
             allowBlank : false,
             blankText : '上传LOGO不能为空',
             fieldLabel : 'logo图片',
             name : 'logoFile',
             inputType : 'file'// 文件类型
             }]
    各位高手帮帮忙