title: PHP upload file - only $_FILES['name'] is populating
body: <p>I've been scouring the internet for two days with this problem, hopefully someone else has ran across this before. I see a lot of questions on S.O. about file uploads and PHP, but my issue is slightly different. I'm hoping that I'm just missing something very obvious.</p>
  
  <p>It appears as though the data from my form never reaches the server fully because the only parameter populated in the <strong>$_FILES</strong> array is 'name'. </p>
  
  <p>For example, here is a vardump of <strong>$_FILES</strong>:</p>
  
  <pre><code>array(1) { ["gameimage"]=&gt; array(1) { ["name"]=&gt; string(15) "Donkey-kong.gif" } }
  </code></pre>
  
  <p>No <strong>error code</strong>, no <strong>tmp_name</strong>, and no <strong>type</strong> are present.</p>
  
  <p>Here is some very basic HTML I'm testing with:</p>
  
  <pre><code>&lt;form name="upload-image-form" enctype="multipart/form-data" method="post"&gt;
  &lt;input type="hidden" name="MAX_FILE_SIZE" value="2000000" /&gt;
  &lt;input type="file" name="gameimage" size="30" /&gt;
  &lt;input type="submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Here are my relevant php.ini settings:</p>
  
  <pre><code>file_uploads = On
  upload_max_filesize = 2M
  max_file_uploads = 10
  upload_tmp_dir is default, but I have tried with /tmp as well.
  </code></pre>
  
  <p>Running PHP 5.3.8</p>
  
  <p>My suspicion is that apache mod_rewrite or some other apache mod is interferring.</p>
  
  <p>I have full control of the host machine, it's a micro-instance running in AWS.</p>
  
  <p>Any help would be appreciated!</p>
  
  <p><strong>Amendment #1:</strong></p>
  
  <p>I have verified from the browser console in Chrome and FF that data is transferring over http properly. My test files were very small, less than 10kb.</p>
  
  <p><strong>Amendment #2:</strong></p>
  
  <p>It seems as if someone else, with the exact same AWS instance, is running into the same problem:</p>
  
  <p><a href="http://www.webmasterworld.com/php/4452298.htm" rel="nofollow">http://www.webmasterworld.com/php/4452298.htm</a></p>
  
  <p>There seems to be some core issue with these versions of apache and linux.</p>