uploadify上传插件的奇怪问题
时间:2011-12-14
来源:互联网
在项目中使用uploadify上传插件时,有时上传正常,有时需要再次刷新整个页面才能正常上传,诸位遇到过这样的问题吗?是怎么解决的?
我用的asp.net,调用代码如下:
JScript code
我用的asp.net,调用代码如下:
JScript code
$("#uploadAdjunctAdd").uploadify({ 'uploader': '../../Scripts/uploadify/uploadify.swf?var=' + new Date().getTime(), 'script': '../../Service/ArticleUpload.ashx?action=adjunct&rand=' + new Date().getTime(), 'cancelImg': '../../Scripts/uploadify/cancel.png', 'auto': false, 'queueID': 'fileQueueAdjunctAdd', 'multi': false, 'simUploadLimit': '3', 'fileExt': adjExt, 'fileDesc': '请选择文件', 'buttonImg': '../../Scripts/uploadify/browse.png', 'buttonText': '浏览', 'width': '80', 'height': '18', 'wmode': 'transparent', 'removeCompleted': true, 'sizeLimit': 1024 * 1024 * 4, 'onError': function (event, id, fileObj, errorObj) { switch (errorObj.type) { case 'File Size': $.messager.alert('错误', '上传的文件太大,不能超过4M!', 'error'); break; case 'HTTP': $.messager.alert('错误', 'HTTP错误,请更改文件名或者稍候刷新页面再试!', 'error'); break; default: } }, 'onComplete': function (event, queueID, fileObj, response) { if (response != "0") { $('#txtAdjunct').val(response); } else { $.messager.alert('错误', '文件上传出错!', 'error'); } } });
作者: ThisIsXp 发布时间: 2011-12-14
没有吗?
作者: ThisIsXp 发布时间: 2011-12-14
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28