dialog = new Ext.ux.UploadDialog.Dialog({
// url : 'system/systemFileInfoAction.do',
url : 'systemFileInfoAction',
width : 450,
height : 300,
minWidth : 450,
minHeight : 300,
draggable : true,
resizable : true,
modal : true,
closeAction : 'close',
permitted_extensions : ['jpg', 'doc', 'xls', 'ppt',
'pdf', 'bmp', 'jpeg', 'gif', 'rar', 'txt',
'csv', 'zip'],
reset_on_hide : false,
allow_close_on_upload : false,
upload_autostart : false
});
方法入口Ext.Ajax.request({
url : String.format('{0}!{1}?objid={2}&objtype={3}',
this.url, this.methodUpload, this.objId
? this.objId
: 0, this.objType),
params : this.base_params,
method : 'POST',
form : this.form,
/**
 * 多加一个fileUpload 和enctype
 */ // fileUpload : true,
// enctype : 'multipart/form-data',
isUpload : true,
success : this.onAjaxSuccess,
failure : this.onAjaxFailure,
scope : this,
record : record
});
发起请求
// fileUpload : true,
// enctype : 'multipart/form-data',
不要这两字段
struts1中能取到数据
迁移到strtus2中
strtus2中加上也去不到数据配置中拦截器也是*.action配置
不明白,upload.parseRequest(request)为什么取不到数据
很困惑,盼解答!
小弟不甚感谢!
分不多,全部都弄上去了!
只能如此