title: PHP - FILES array empty when using upload
body: <p>I have I file upload form that looks like this</p>
  
  <pre><code>&lt;form action="" name="edit" method="POST" class="form-horizontal" enctype="multipart/form-data"&gt;  
     &lt;input type="file" name="zipfile"&gt;
     &lt;input type="submit" class="btn btn-default" value="Save"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This basically POSTs to it self. But at the top of the same file I output the <code>$_FILES</code> array with <code>print_r($_FILES);</code>, but it is empty after I submit the form with a 100 kb file.</p>
  
  <p>I have checked my error.log file in /var/log/apache2, but there is nothing there.</p>
  
  <p>My php.ini file is set to</p>
  
  <pre><code>file_uploads = On
  upload_tmp_dir = /var/www/tmpdir/
  upload_max_filesize = 1024M
  </code></pre>
  
  <p>But the tmpdir directory remains empty. This directory is set with 775 permissions and even 777 for a test, but same results. I have also, after changing the file, restarted the Apache2 service.</p>
  
  <p>I must be missing something very obvious here?</p>