Is my date correct?

0

I have questions if I am correctly passing the data by date, is the syntax correct? I'm sending it to the receiver.php and trying to get it with POST ['imagedomame']; and it does not work.

$('#novo').on('submit',function(e) {
    e.preventDefault();

    form = document.getElementById('novo');
    var data = new FormData(form);
    $.ajax({
        url:'ajaxDoEnvioDeEmail.php',
        type:'post',
        data:{'imagemdomeumodelo':data},
        contentType:false,
        processData:false,
        success:function(msg) {

            console.log(msg);
            $('.envios').show();
            $('.envios').html(msg);

        },
        beforeSend: function() {
            $('.divtop').hide('fast');
            $('.carregando').fadeIn('slow');    

        },
        complete:function() {
            $('.carregando').fadeOut('slow');
        $('.sucesso').fadeIn('slow');
            $('.envios').show();
            $('.sucessow').fadeIn('fast');
        }

    });

});
    
asked by anonymous 06.01.2018 / 19:23

0 answers