Metro-UI-CSS icon indicating copy to clipboard operation
Metro-UI-CSS copied to clipboard

TypeError: 'append' called on an object that does not implement interface FormData

Open dkova opened this issue 11 years ago • 1 comments

Good day. I have an issue. I created a Dialog and paste into it form with a file upload. But it is not working and Firebug shows error: TypeError: 'append' called on an object that does not implement interface FormData

My JS code:

        function regnf()
        {
            var data = new FormData($('#s2')[0]);
            $.ajax(
            {
                url : "/include/proc/register.php",
                type: "POST",
                data : data,
                success:function(response)
                {
      window.location.reload;
            }});
        };

Please help me.

dkova avatar Dec 20 '14 20:12 dkova

add to ajax:({ processData: false, contentType: false, }, )

juanu96 avatar Feb 22 '19 15:02 juanu96