Bug fix : JQuery Uploadify / Internet explorer / Flash Undefined error

by Tom 14. April 2009 06:30

I had the problem that the upload component did not work with a client of mine on different versions of IE .

This is appearantly due to the way flash works with dynamic flash components located within form tags in internet explorer.
The fix is really easy, but it was really nasty to find the cause...

If your code looks like this :

             $("#FileToUpload").fileUpload({   ...    }); 

 <form>  <input type="file" id="FileToUpload"/></form>

just add a new line after 'uploadifying' the element :         

FileToUploadUploader=document.getElementById("FileToUploadUploader");

So you define a javascript global var with the name of your element+"Uploader", and assign the element to it....

That's all there is to it...

 

Bookmark and Share

Tags: ,

Development

Comments

6/19/2009 5:59:28 AM #

uPVC Windows

Thanks for this info, just what I was looking for! Don't you just hate Internet Explorer though?!?

uPVC Windows United Kingdom |

Comments are closed

About me

Tom Janssens op LinkedIn

Tom Janssens op twitter

Core bvba RSS

My name is Tom Janssens and I am the owner of Core bvba, a software and consultancy company.
I am married to Liesbeth and have 2 sons named Quinten and Matisse.
ICT is both my job and passion.
Next to this my other hobby is actively playing music (mostly guitar).

More info about me and my company...

Recent Comments