1

文件正在很好地上传,但上传完成后 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);
            }
        });
    });
4

0 回答 0