IE9: loading swf files takes very long

▼魔方 西西 提交于 2019-12-11 05:29:08

问题


When using Uploadify 2.1.4 on my (not local) server, all works fine in IE9. When moving the solution to the client's server, the loading of uploadify.swf takes exactly 60 seconds in IE9, but works fine in Chrome. IE9 displays it as "Pending". Accessing the swf directly works fine, headers show that both servers run Apache.

I've only traced one similar incident on uploadify forums without any solutions.

Uploadify code:

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

回答1:


Check if you missing the classid attribute on your object element

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

I had a similar problem where it would take 120s to download a 320byte swf in IE9 while IE8 and others took mere milliseconds



来源:https://stackoverflow.com/questions/9783597/ie9-loading-swf-files-takes-very-long

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!