var uploadLimit = 1;
$(document).ready(function () {
$("#uploadify").uploadify({
'swf': '../Scripts/uploadify/uploadify.swf',
'uploader': 'CaseUploadingXls.aspx?Action=uploading',
'buttonClass': 'btnClass',
'height': 28,
'width': 80,
'hideButton': true,
'buttonText': '浏览',
'auto': false,
'queueID': 'fileQueue',
'multi': false,
'uploadLimit': 1,
'onUploadSuccess': function (file, data, response) {
if (response) {
$("#uploadify").uploadify('settings', 'uploadLimit', ++uploadLimit);
}
}
});
});
function uploadXls() {
$("#uploadify").uploadify('upload', '*');
}