【问题标题】:jQuery uploadify error: Uncaught TypeError: Cannot read property 'queueData' of undefinedjQuery 上传错误:未捕获的类型错误:无法读取未定义的属性“queueData”
【发布时间】:2017-11-25 10:55:42
【问题描述】:

以前没有使用过。但是现在:

所有关系都符合文档

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

发生了什么?

【问题讨论】:

    标签: javascript jquery image upload uploadify


    【解决方案1】:

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

    如果您使用的是 Chrome

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

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

    希望它对你有用。

    【讨论】:

      猜你喜欢
      • 2015-07-11
      • 2017-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-26
      • 2021-12-22
      • 2015-01-06
      相关资源
      最近更新 更多