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

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

Used previously without a broble. But now:

All relationships are in accordance with the documentation

$("#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>'
        });

What happened?

检查您是否已闪存安装,如果已安装,请确保您的域位于 'allow' 部分。

如果您正在使用 Chrome

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

但是,这仅适用于您的节点,如果它是某些客户端的解决方案,您必须通知他们或找到其他解决方案来触发您需要以某种方式从您的 website/app 闪存。

希望对你有用。