浏览器没有装flash插件。
$(function(){
$("#file_upload").uploadify({
'method' : 'post',
'height' : 30,
'swf' : '${ctx}/static/js/uploadify/uploadify.swf',
'uploader' :'${ctx}/ajax/file_add',
'width' : 120,
'auto':false,
'formData':{
},
'fileTypeExts':'*.jpg;*.jpge;*.gif;*.pgn',
'queueSizeLimit':'10',
'fileObjName': 'file',//controller中变量名
'onFallback':function(){ //Flash无法加载错误
alert("您未安装FLASH控件,无法上传!请安装FLASH控件后再试。");
},
'onUploadError':function(file,errorCode,errorMsg){ //上传失败
alert(file.name+"上传失败,</br>错误信息:"+errorMsg);
},
'onUploadSuccess' : function(file, data, response) {
alert( file.name + ' 上传成功! ');
}
});
});