【问题标题】:IE9: loading swf files takes very longIE9:加载 swf 文件需要很长时间
【发布时间】:2012-03-20 08:39:20
【问题描述】:

在我的(非本地)服务器上使用 Uploadify 2.1.4 时,在 IE9 中一切正常。将解决方案移动到客户端服务器时,在 IE9 中加载 uploadify.swf 需要 60 秒,但在 Chrome 中可以正常工作。 IE9 将其显示为“待处理”。直接访问 swf 可以正常工作,标头显示两台服务器都运行 Apache。

我只在uploadify 论坛上追踪了一个similar incident 没有任何解决方案。

上传代码:

$("#gallery").uploadify({
            // Required Settings

            langFile : '/dataface/js/uploadify/uploadifyLang_en.js',
            swf : '/dataface/js/uploadify/uploadify.swf',
            uploader : '/image_upload.php?e50e0dc4d157efb537b37e2ea8dc78f1=53b988fc110c01ba81a2ddceabf38ab7',

            // Options - HERE ARE ALL USEFUL OPTIONS, DON'T USE ANYTHING THAT ISN'T LISTED HERE
            'folder'          : '26',
            'createFolder'    : true,
            'auto'            : true,
            'buttonText'      : 'Vali pildid',
            'width'           : 150,
            'height'          : 30,
            'cancelImage'     : '/dataface/js/uploadify/uploadify-cancel.png',
            'fileSizeLimit'   : 1*512, // 0,5MB
            'fileTypeDesc'    : 'Image Files',
            'fileTypeExts'    : '*.jpg;*.jpeg;*.gif;*.png',
            'method'          : 'post',
            'multi'           : true,
            'queueID'         : 'fileQueue',
            'queueSizeLimit'  : 999,
            'removeCompleted' : true,
            'progressData'    : 'all',



            onQueueComplete: function (stats) {
                // Save the form (and thus reload)
                $('form[name="existing_products_record_form"]').submit();
            }
});

【问题讨论】:

    标签: flash internet-explorer-9 uploadify


    【解决方案1】:

    检查您是否缺少对象元素上的 classid 属性

    请看这里: http://code.google.com/p/swfupload/issues/detail?id=371&can=1&q=IE9&colspec=ID%20Type%20Status%20Summary%20FixReleasedIn%20FixTargetedFor%20Modified

    我有一个类似的问题,在 IE9 中下载 320 字节的 swf 需要 120 秒,而 IE8 和其他只需要几毫秒

    【讨论】:

    • 我遇到了同样的问题,这个解决方案对我有用。显然 IE 在实际下载 swf 文件 (at-byte.com/technology/…) 之前发出 contype 请求以找出内容类型。由于某种原因,需要 2 分钟才能得到对 contype 请求的响应。
    猜你喜欢
    • 1970-01-01
    • 2021-05-14
    • 2012-06-24
    • 2017-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多