这是首次上传
这是点击“X”按钮移除后,重新上传出现的情况
这是代码:
var sessionId = '${sessionId}';
$(function(){
$("#upload").uploadify({
buttonText : '上传',
auto : true,
method:'post',//发送请求的方式,get或post
multi:false,//是否允许选择多个文件
fileObjName:'upfile',
uploadLimit:1,
removeCompleted: true,
removeTimeout:999,
showUploadedPercent:true,//是否实时显示上传的百分比,如20%
showUploadedSize:true,
swf : '${pageContext.request.contextPath}/xxx/fileload/uploadify.swf',
uploader : '../../fileUpload.do;jsessionid='+sessionId,
onUploadSuccess : function(file, data, response) {
//alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
},
onUploadError : function(file, errorCode, errorMsg, errorString) {
alert('The file ' + file.name + ' could not be uploaded: ' + errorString);
}
});
});
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
试试: removeCompleted:false
*removeCompleted
Set to false to keep files that have completed uploading in the queue.*
这个是老外的两个方法:我都试过了,还是不行,兄弟们,救我...
老外1:http://www.uploadify.com/foru...
老外2:http://stackoverflow.com/ques...