title: Ajax file upload with formData fails on large files
body: <p>I'm sending via ajax a FormData object containing uploads files but when I try to upload large files (> 5M), I receive empty $_POST and $_FILES variables. </p>
  
  <p>Reading so much posts about this issue I applied almost everything but didn't work.</p>
  
  <pre><code>I've tried on php.ini:
  - max_execution_time = 300
  - max_input_time = 300
  - post_max_size = 2048M (large but compulsory)
  - upload_max_filesize = 2048M (large but compulsory)
  - max_input_vars = 2000 (trying different values)
  
  On HTTP/HTTPS directives (some have no sense but I was trying in a desperately way to see the behaviour):
  - FcgidConnectTimeout 300
  - FcgidIOTimeout 300
  - FcgidIdleTimeout 300
  - FcgidBusyTimeout 300
  - IPCCommTimeout 9999
  - FcgidMaxRequestLen 21474836480
  </code></pre>
  
  <p>My code looks as follows:</p>
  
  <pre><code>var form = $('form[name="myform"]');
  var formData = new FormData(form[0]);
  
  /*
  Also tried this:
     var file = $("form[name='myform'] input[name='filename']");
     formData.append("my_upload", (file[0]).files[0]);
  */
  
  $.ajax({
     type: 'post',
     data: formData,
     dataType: 'json',
     async: true,
     url: '/mysite/controllers/Controller.php',
     processData: false,
     contentType: false,
     ...
  });
  </code></pre>
  
  <p>So, for files &lt; 5M everything works perfect in both my local server and production server. For files > 5M only works on my local server but not in the production server (where I receive empty $_POST and $_FILES variables). They have in general some variables configuration although production server is under a WAF on CloudFlare.</p>