WCF和ExtJS FileUpload

时间:2010-10-20 15:52:35

标签: 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属性,但无法将字节流传递到WCF服务层

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

1 个答案:

答案 0 :(得分:1)

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

相关问题