日期:2014-05-17 浏览次数:20484 次
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="/Scripts/upload/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/upload/swfobject.js"></script>
<script type="text/javascript" src="/js/upload/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#upload").uploadify({
'uploader': '/Scripts/upload/uploadify.swf',
'script': "/Ajax/Ajax/UploadImg",
'buttonImg': '/images/addimg.gif',
'width': 60,
'height': 22,
'queueID': "none",
'queueSizeLimit': 20,
'method': 'post',
'wmode': 'transparent',
'auto': false, //是否自动上传
'multi': false, //是否多文件上传
'fileExt': '*.jpg;*.jpeg;*.gif;*.png;*.bmp;',
'fileDesc': '*.jpg;*.jpeg;*.gif;*.png;*.bmp;',
"onComplete": function (event, queueID, fileObj, response, data) {
console.log("success");
},
"onSelectOnce": function (e, queueId, fileObj) {
$('#upload').uploadifyUpload();
},
"onError": function (event, queueId, fileObj, errorOb) {
&