Extra GET request when using SWFUpload25 Mar 2010
If you've ever seen an upload progress bar on any website, it most surely was done using SWFUpload.
Anyway, today I spotted a strange behavior in one of my pages, heavily using
SWFUpload(more or less 20 upload fields). Using the Net panel of Firebug, I
saw some strange GET requests being made to my website.
After digging into my code, I could isolate the problem. I was coming from
SWFUploaditself. I even found record of a bug
In a nutshell, SWFUpload always make a request to the url specified in the
button_image_url parameter, even if you haven't specified one (in this case
it made a request to your webroot).
I'm not using any image for my button, or should I say, I take care of that in CSS already, my SWFUpload button is just an invisible Flash element, positionned on top of my existing button.
I tried setting the value to
falseor an empty string, but it would
continue to do the request.
Anyway, I upgraded to the latest version (2.5.0 Beta 3), and it solves my problem. Now I'm just hoping that all the retro-compatibility will be kept.
Want to add something ? Feel free to get in touch on Twitter : @pixelastic