今天在做uploadify上传时,发现只要一初始化就会发出一个请求,而这个请求是当前页面的地址,觉得很郁闷,然后找了很久才找到问题所在,应该也算是一个bug吧,给出解决方案
将这个代码换成下面就可以了
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