var conditionPanel = new Ext.form.FormPanel({
region:'north',
renderTo:"left",
fileUpload:true,
items:[{fieldLabel: '上传文件',xtype:'textfield',id:"image",inputType:'file',buttonText:'123',name:'image'}],
buttons:[{
text:"提交",
handler:verify_submit
}]
function verify_submit(){
var submitForm = conditionPanel.getForm();
if (submitForm.isValid()){
submitForm.submit({
url:'<%=basePath%>/taskdo/task_uploadFile',
params:{action:'submit'},
method: 'post',
success:function(form, action){
},
failure:function(form, action ){
}
});
}else {
}
}
});
Struts2+extjs 传输1G大文件时,正在传输过程中,页面鼠标一直转圈,页面很卡!是不是因为是同步传输的原因啊?
怎么才能向百度网盘那样,弹出个框,感觉是异步的对页面没影响呢?
2 个解决方案
#1
技术解决不了的,就换思路解决
#2
试试文件分割上传
#1
技术解决不了的,就换思路解决
#2
试试文件分割上传