MusaPekel adlı üyeden alıntı: mesajı görüntüle
$('#rapor').on('click', function() {
    document.getElementById("yeni").innerHTML="";
    
    var form_data = new FormData($("#form")[0]);

    var file_data = $('#sortpicture').prop('files')[0];
    form_data.append('file', file_data);

    $("#wait").css("display", "block");

    $.ajax({
        url: 'excel_islemyukle.php',
        dataType: 'text',
        cache: false,
        contentType: false,
        processData: false,
        data: form_data,
        type: 'post',
        success: function(php_script_response){
            $('#yeni').html(php_script_response);
            $("#wait").css("display", "none");
        }
    });
});
Teşekkür ederim sağolun.