uploadify onloadSuccess无法正常工作

时间:2012-05-04 21:15:50

标签: jquery

文件上传很好但上传完成后onUploadSuccess没有运行可能出现什么问题

    jQuery(function() {
        jQuery('#app-icon').uploadify({
            'uploader':'../wp-content/themes/canvas/admin/uploadify/uploadify.swf',
            'script':'../wp-content/themes/canvas/admin/uploadify/uploadify.php',
            'cancelImg':'../wp-content/themes/canvas/admin/uploadify/cancel.png',
            'folder':'../wp-content/themes/canvas/admin/uploadify/uploads',
            'auto':true,
            'fileExt':'*.jpg;*.gif;*.png',
            'fileDesc':'Web Image Files (.JPG, .GIF, .PNG)',
            'queueSizeLimit':3,
            'simUploadLimit':3,
            'method':'POST',
            'sizeLimit':10240000,
            'removeCompleted':false,
            'onUploadSuccess' : function(file, data, response) {
                alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
                jQuery("#file-name").val(file.name);
            }
        });
    });

0 个答案:

没有答案