Metro-UI-CSS
Metro-UI-CSS copied to clipboard
TypeError: 'append' called on an object that does not implement interface FormData
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.
add to ajax:({ processData: false, contentType: false, }, )