$("#custom_file_upload").uploadify({
'uploader': '/Scripts/Uploadify/uploadify.swf',
'script': '/ashx/UploadFiles.ashx?type=upload_avatard',
'cancelImg': '/Scripts/Uploadify/uploadify-cancel.png',
'folder': '/',
'queueSizeLimit': 1,
'simUploadLimit': 1,
'sizeLimit ': 1024 * 1024 * 5,
'multi': true,
'auto': true,
'fileExt': '*.jpg;*.gif;*.png;',
'fileDesc': 'Image Files (.jpg, .gif, .png)',
'queueID': 'fileQueue',
'width': 65,
'height': 21,
'buttonText': '选择照片',
'wmode': 'opaque',
'hideButton': false,
'removeCompleted': false,
'onComplete': function (event, queueId, fileObj, response, data) {
var ary = response.split('|');
if (ary[0] == "0") {
alert("上传失败请重新上传!");
}
else {
//path资源地址
if (ary.length == 2) {
alert(ary[1]);
$("#hdImgUrl").val(ary[1]);
$("#advar").attr("src", ary[1]);
} else {
alert("error");
}
}
}
});
调试也进入不了一般处理程序,没有一点反应。
添加回答
举报
0/150
提交
取消