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

About Tom

Tom Janssens op LinkedIn

Tom Janssens op twitter

Core bvba RSS

 

Tom Janssens is an independent freelance ICT consultant that has been "into computers" ever since the age of 7.

Typing source code from a book evolved into exploring the limits of coding in procedural, assembly and object-oriented languages.
As he matured in software coding, he started focussing on the problems surrounding software development, and learned that software development is usually about people and interactions first, and about technology second.

Due to his diverse track record he gained insights in a lot of aspects of the software development process. Currently his main focus is on strategic ICT advice, lean product/project development and improving the software development process and architecture.

He avoids ivory-tower-approaches by applying and verifying the applicability of the latest tech buzz in software experiments.

He is also the founder of the following LinkedIn groups:

CQRS Professional
BDD Professional
Asp.Net MVC professional

More info about Tom and his company...


Advertisement

Forget all your SCRUM -, Kanban - and other Agile and Lean certificates

Here is the only true AGILE and LEAN certificate you will ever need:

The Creative Recursive Analysis Process Certificate
(CRAP Certificate for short)

More info can be found at the official CRAP certificate website:
http://bit.ly/CRAPCertificate