解决Uploadify 3.2上传控件加载导致的GET 404 Not Found问题

http://www.uploadify.com/forum/#/discussion/7329/uploadify-v3-bug-unecessary-request-when-there-is-no-button_image_url-set-/p1

 

原来问题的症结在于SWFUpload,这个是Uploadify调用供支持Flash上传用的,但是其没有对button_image_url进行判断,导致如果button_image_url为空的话就默认请求了当前根路径,修改的方法也比较简单,加个判断即可:

将jquery.uploadify.js中下面代码:

this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url);
修改成如下:

if (this.settings.button_image_url != "") {
this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url);
}

 

posted @ 2017-04-07 17:24  orac  阅读(582)  评论(0编辑  收藏  举报