繁体   English   中英

jQuery uploadify错误:未被捕获的TypeError:无法读取未定义的属性'queueData'

[英]jQuery uploadify error: Uncaught TypeError: Cannot read property 'queueData' of undefined

以前使用时没有碎屑。 但现在:

在此处输入图片说明

所有关系均符合文档规定

$("#file_upload").uploadify({
            'method'   : 'post',
            'buttonClass' : 'upload-photo-file',
            'formData' : { 'cmd' : 'download', 'path' : pathPhoto, 'user' : user},
            'auto'     : false,
            'buttonText' : 'Выбрать фото',
            'progressData' : 'speed',
            'swf'      : '/uploadify.swf',
            'uploader' : '/uploadify.php',
            // Some options
            'onUploadSuccess' : function(file, data, response) {
                $('.results').html(data);
            },
            'itemTemplate' : '<div id="${fileID}" class="uploadify-queue-item">\
                <div class="cancel">\
                    <a class="del-moder-photo" href="javascript:$(\'#${instanceID}\').uploadify(\'cancel\', \'${fileID}\')"><i class="fa fa-times"></i></a>\
                </div>\
                <span class="fileName" >${fileName} (${fileSize})</span>\
                <span class="data"></span>\
                <div class="uploadify-progress"><div class="uploadify-progress-bar"><!--Progress Bar--></div></div>\
            </div>'
        });

发生了什么?

检查是否已安装Flash,如果已安装,请确保您的域位于“允许”部分。

如果您使用的是Chrome

  1. 前往:chrome:// settings / content / flash
  2. 在您的域的允许部分中添加一个新条目。

但是,这仅在您的节点上有效,如果这是某些客户端的解决方案,则您必须通知他们或找到其他解决方案以触发您需要以某种方式从您的网站/应用中刷新。

希望对你有效。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM