Search code examples
jqueryasp.netflashasp.net-mvc-3uploadify

uploadify 3 Select file not working in ie9


I created a page with an uploader. As uploader I use Uploadify 3. The code is working on all browsers except for IE9. When I turn IE 9 in compat mode it is working. In IE9, I can't push the upload button. It shows, but there is no reaction to the click. So no file select dialog is opened. In Opera, chrome and FF the button works and when I click the file open dialog is showed.

Flash is running in IE9. (version 11,0,1,152) (youtube is working)

When I rightclick the button I don't get flash info. When I do this in all other browsers I get flash info. When I rightclick in youtube (in ie9) I also get flash info....?

This is my uploadify jquery code:

 $(document).ready(function() { 
    $('#fileInput').uploadify({ 
        'swf': '/Content/Scripts/uploadify3/uploadify.swf', 
        'uploader': '/nl-nl/Attachment/Upload', 
        'cancelImage': '/Content/Scripts/uploadify3/uploadify-cancel.png', 
        'checkExisting': '/nl-nl/Attachment/Check', 
        'multi': true, 
        'buttonText': 'Upload', 
        'postData' :{'RelationId' : '@cookie'}, 
        'sizeLimit': 2147483647, 
        'auto': true, 

        onError: function(a, b, c, d) { 
            if (d.status == 404) 
                alert("Could not find upload script. Use a path relative to: " + "<?= getcwd() ?>"); 
            else if (d.type === "HTTP") 
                alert("error " + d.type + ": " + d.status); 
            else if (d.type === "File Size") 
                alert(c.name + " " + d.type + " Limit: " + Math.round(d.sizeLimit / 1024) + "KB"); 
            else 
                alert("error " + d.type + ": " + d.text); 
        }, 
        onUploadComplete: function() { 
            $("#Grid").data('tGrid').ajaxRequest(); 

        } 
    }); 
});

Did I made a mistake? Is this a flash bug? Or something else?


Solution

  • Dont know the real problem, but for someone else with this problem. It works after deploy, just not in debugger mode.