When we are passing string data using post method, if the string size goes beyond 1 MB it is giving "Request Entity Too Large" error. While below 1 MB it is working properly.
We have web hosting plus in godaddy with Linux Cpanel.
Here is My code
$("#Exceldownload_jobAlloctn").click(function(){
    var getrowdata = $('#location_grid_for_hub').jqxGrid('getrows');
    var getrowdata = JSON.stringify(getrowdata);
    if($('#location_grid_for_hub').jqxGrid('getrows').length == 0)
                {
                    callnotify_alert("Error","No Data to Export",'danger');
                    return false;
                }
    else{
   
    //json.stringfy();
  //  console.log(tickets_jqxgrid_rows);
        $.ajax({
            headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            },
            url: "/Exportdata",
            dataType: 'text',
            type: "POST",
           // cache:false,
           processData: true,
        //    contentType: true,
            data: {"grid_data":getrowdata },
            error: function (error) {
                   console.log(error);
            },
            success: function (data) {
                console.log(data);
                
               // excel_nm= data;
                var excel_nm= data;
                var link1 = document.createElement("a");
                document.body.appendChild(link1);
                link1.download = data;
                link1.title = data;
                link1.setAttribute("type", "hidden");
                link1.setAttribute("download", data);
                 var url=$("#excelfile_url").val();
                link1.href = url+excel_nm; 
                
                link1.click();
                document.body.removeChild(link1);
                }
        });
    }
    
    });
Even tried increasing post_max_size and upload_max_filesize, but no luck.