Uploadify swf requesting URL on page load

亡梦爱人 提交于 2019-12-04 02:47:05

I have resolved this issue by following eugen's comment on this thread,

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

Find following code in the upper part of the file:

this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url)

and rewrite it to:

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

troyanx, give me a nice tip, that works! Just replace in jquery.uploadify.js (.min or not):

this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url); 

for:

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

In my case the load of swf was making a request to the same url folder of the page where uploadify was loading.

From: http://www.uploadify.com/forums/discussion/comment/16999#Comment_16999

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