I'm reading a .CSV (excel) file using javascript, when I console.out the .CSV data I get it in this format:
<http://prntscr.com/ivdn1h>

I have to import this data in my database. I use ajax to send the data via POST request to my REST endpoint, where I call the function that does the import.

AJAX CODE:

```
function pushToDatabase(lines){
    var array = lines;
     $.blockUI();
     $.ajax({
          url: "rest/v1/upload",
          method: "POST",
          dataType: "json",
          data: {
               file: array
          },
          success: function() {
               alert("Data has been uploaded succesfully.");
          }

     });
     $.unblockUI();
}

```

ENDPOINT (flightPHP):

```
Flight::route('POST /upload', function () {
    $file = Flight::request()->data->file;
    $status = Flight::pm()->upload_records($file);
    Flight::json($status);
});

```

But when I send the request, I get this response:

```
<b>Warning</b>:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in <b>Unknown</b> on line <b>0</b><br />

```

Here is the http request header:

<http://prntscr.com/ivdrmz>

I'm not interested in changing my max\_input\_vars. I hope somebody can help me to fix my data format. 

Thanks in advance. :)