WCF和ExtJS文件上传
我一直在尝试使用ExtJS通过WCF上传文件,这里是我的代码片段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属性,但无法将字节流传递到
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和/或?如果没有,请尝试这些并发回您在诊断中看到的任何警告和/或错误