解决开启远程静态文件 IE内核浏览器 附件选择文件上传Flash按钮无效
config_global.php 下,如果设置 如下,即所有 static目录的东西,从 外部服务器读取
$_config['output']['staticurl'] = ‘http://cdn.xxxx.com/static/’;
那么在 IE 下 (起码 IE6, IE 7 和 IE 9 有这个情况),
发帖或者回帖时,点击“附件”后, 显示的 “选择附件上传” Flash 按钮, 不管怎么点击,也不会弹出 文件选择的资源浏览器窗口。
解决方法:
把swfupload.swf文件放回到论坛所在的web服务器的/static/image/common/目录里面
接着:
打开/static/js/swfupload.js文件,找到145、146行:
this.ensureDefault(“flash_url”, IMGDIR+”/swfupload.swf”);
this.ensureDefault(“flash9_url”, IMGDIR+”/swfupload.swf”);
修改为:
this.ensureDefault(“flash_url”, “/static/image/common/swfupload.swf”);
this.ensureDefault(“flash9_url”, “/static/image/common/swfupload.swf”);
原文链接:http://cong5.net/open-static-flash-uploads-null.html
$_config['output']['staticurl'] = ‘http://cdn.xxxx.com/static/’;
那么在 IE 下 (起码 IE6, IE 7 和 IE 9 有这个情况),
发帖或者回帖时,点击“附件”后, 显示的 “选择附件上传” Flash 按钮, 不管怎么点击,也不会弹出 文件选择的资源浏览器窗口。
解决方法:
把swfupload.swf文件放回到论坛所在的web服务器的/static/image/common/目录里面
接着:
打开/static/js/swfupload.js文件,找到145、146行:
this.ensureDefault(“flash_url”, IMGDIR+”/swfupload.swf”);
this.ensureDefault(“flash9_url”, IMGDIR+”/swfupload.swf”);
修改为:
this.ensureDefault(“flash_url”, “/static/image/common/swfupload.swf”);
this.ensureDefault(“flash9_url”, “/static/image/common/swfupload.swf”);
原文链接:http://cong5.net/open-static-flash-uploads-null.html
还没人转发这篇日记