uploadify 3.1 /3.2 在Firefox,Chrome 浏览器下,进入页面请求两次问题解决办法。
最近在做MVC项目的时候有用到 uploadify,但是在进入页面的时候会有请求两次的问题。估计是在取flash文件出现了问题,但始终找不到uploadify代码的问题,最终
在地址:http://hi.baidu.com/powerthinks/item/4690041c124ea0f164eabfcd 找到解决的方法,非常感谢!
具体解决方法是:
this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url)
改为
this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url = this.settings.button_image_url ? SWFUpload.completeURL(this.settings.button_image_url) : this.settings.button_image_url