SCRIPT5009: 'FormData' is not defined

1

The FormData tag is being displayed indefinitely. IE does not recognize.

    var formAnexo = null;
    if ($("#anexarArquivos").attr("enctype") == "multipart/form-data") {
        formAnexo = new FormData($("#anexarArquivos").get(0));
    }
    
asked by anonymous 24.04.2014 / 15:24

1 answer

1

FormData (which is part of XMLHttpRequest Level 2 is not supported on lower IE versions of IE10 or when you are using some compatibility mode.

You can see the support matrix here .

However, if you have to support IE under IE10 you can use the polyfill jUri.js .

If your page is running erroneously in compatibility mode consider informing IE that you want to use the latest version by setting meta tag to head as below:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
    
24.04.2014 / 15:34