Jquery uploadify Excess Get Request of 404 Error Resolution

  • 2021-07-16 01:10:17
  • OfStack

If the button_image_url parameter is not set when using jquery uploadify, there will be some redundant get requests and even an error of 404, which is an bug of this plug-in. The official solution is as follows:

Find the following code:


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

Modify 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


Related articles: