Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WCF和ExtJS文件上传_Extjs_Wcf_Stream - Fatal编程技术网

WCF和ExtJS文件上传

WCF和ExtJS文件上传,extjs,wcf,stream,Extjs,Wcf,Stream,我一直在尝试使用ExtJS通过WCF上传文件,这里是我的代码片段 browseFile = new Ext.ux.form.FileUploadField({ id: 'form-file', name: 'BrowseFile', fieldLabel: 'Browse', allowBlank: false, maxLength: 8000, emptyText: '' })) 添加到表单并使用fileupload:true属性,但无法将字节流传递到

我一直在尝试使用ExtJS通过WCF上传文件,这里是我的代码片段

  browseFile = new Ext.ux.form.FileUploadField({
  id: 'form-file',
  name: 'BrowseFile',
  fieldLabel: 'Browse',
  allowBlank: false,
  maxLength: 8000,
  emptyText: ''      
}))

添加到表单并使用fileupload:true属性,但无法将字节流传递到WCF服务层

formPanel.getForm().submit(
        {
          url: 'svc/' + entityService + '/' + (isNewRecord ? 'Create' : 'Update'),
          waitMsg: 'Please wait...',
          waitTitle: 'Submiting data',
          params:
            {
              fileData: Ext.getDom('form-file').getValue()
            },

您能否详细说明一下,您如何知道流没有被传递到服务?是客户端出错还是您启用了WCF和/或?如果没有,请尝试这些并发回您在诊断中看到的任何警告和/或错误