Missing all POST variables after <input type="file"> field
<p>I have a form with a couple of text fields and a file field. It works great, but occasionally I receive submissions where all the POST variables <strong>after the file field</strong> are missing. There's a hidden field before it, and it gets through. But nothing else.</p>

<p>What I already ruled out:</p>

<ul>
<li>It's not a JS issue. Tried with disabled javascript.</li>
<li>Not browser specific.</li>
<li>post_max_size and upload_max_filesize are set to 16M. In the PHP docs, they say if the post_max_size is maxed out, the whole POST array would be empty. Also, the example below shows the user was trying to upload 3Mb. </li>
<li>Not a code bug. The POST array is checked at the top of the code, and my fields are already missing there.</li>
</ul>

<p>Here's a logged request of a failed submission:</p>

<pre><code>array (
  'REDIRECT_STATUS' =&gt; '200',
  'HTTP_HOST' =&gt; 'www.myserver.net',
  'HTTP_USER_AGENT' =&gt; 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17',
  'CONTENT_LENGTH' =&gt; '3663600',
  'HTTP_ACCEPT' =&gt; 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  'HTTP_ORIGIN' =&gt; 'http://www.myserver.net',
  'CONTENT_TYPE' =&gt; 'multipart/form-data; boundary=----WebKitFormBoundaryJl9HfSy2dJcipS6H',
  'HTTP_REFERER' =&gt; 'http://www.myserver.net/application',
  'HTTP_ACCEPT_LANGUAGE' =&gt; 'en-us',
  'HTTP_ACCEPT_ENCODING' =&gt; 'gzip, deflate',
  'HTTP_COOKIE' =&gt; 'PHPSESSID=ij0bl3s0270g2dqt1bciihm4e1; __utma=147355958.1678578375.1360602985.1362421240.1362455482.5; __utmb=147355958.3.10.1362455482; __utmc=147355958; __utmz=147355958.1360781666.2.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)',
  'HTTP_CONNECTION' =&gt; 'keep-alive',
  'PATH' =&gt; '/sbin:/usr/sbin:/bin:/usr/bin',
  'SERVER_SIGNATURE' =&gt; '',
  'SERVER_SOFTWARE' =&gt; 'Apache/2.2.15',
  'SERVER_NAME' =&gt; 'www.myserver.net',
  'SERVER_ADDR' =&gt; '1.2.3.4',
  'SERVER_PORT' =&gt; '80',
  'REMOTE_ADDR' =&gt; '1.2.3.4',
  'DOCUMENT_ROOT' =&gt; '/home/myserver/public_html',
  'SERVER_ADMIN' =&gt; 'root@localhost',
  'SCRIPT_FILENAME' =&gt; '/home/myserver/public_html/index.php',
  'REMOTE_PORT' =&gt; '62378',
  'REDIRECT_QUERY_STRING' =&gt; 'page=form-save',
  'REDIRECT_URL' =&gt; '/form-save',
  'GATEWAY_INTERFACE' =&gt; 'CGI/1.1',
  'SERVER_PROTOCOL' =&gt; 'HTTP/1.1',
  'REQUEST_METHOD' =&gt; 'POST',
  'QUERY_STRING' =&gt; 'page=form-save',
  'REQUEST_URI' =&gt; '/form-save',
  'SCRIPT_NAME' =&gt; '/index.php',
  'PHP_SELF' =&gt; '/index.php',
  'REQUEST_TIME' =&gt; 1362456880,
);
</code></pre>

<p>Any ideas? It's driving me crazy. 
Thanks!</p>
