title: PHP $_FILES superglobal only containing name
body: <p>I've checked all over, including links like:<br> 
  <a href="http://getluky.net/2004/10/04/apachephp-_files-array-mysteriously-empty/" rel="nofollow noreferrer">http://getluky.net/2004/10/04/apachephp-_files-array-mysteriously-empty/</a><br>
  <a href="https://stackoverflow.com/questions/10908936/php-upload-file-only-filesname-is-populating">PHP upload file - only $_FILES[&#39;name&#39;] is populating</a>
  <br>Etc and tried all the suggestions but to no avail. 
  I've even went the the extent of var_dumping the $_POST and $_FILES:</p>
  
  <pre><code>array(1) { 'description' =&gt; string(11) "finaldemand" }
  
  array(1) {
    'file' =&gt;
    array(5) {
      'name' =&gt;
      string(16) "finaldemand.docx"
      'type' =&gt;
      string(0) ""
      'tmp_name' =&gt;
      string(0) ""
      'error' =&gt;
      int(6)
      'size' =&gt;
      int(0)
    }
  }
  </code></pre>
  
  <p>It looks like the file is not being submitted at all, although my HTML (and I have tried various others) seems right:</p>
  
  <pre><code>    &lt;form enctype="multipart/form-data" action="addTemplateScript.php" method="POST"&gt;
              &lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Choose a file to upload:&lt;/td&gt;
                      &lt;td&gt;
                          &lt;input type="file" name="file" id="file"&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Used as:&lt;/td&gt;
                      &lt;td&gt;
                          &lt;input type="radio" name="description" id="transfer" value="transfer" /&gt;Application to Transfer&lt;br /&gt;
                          &lt;input type="radio" name="description" id="lay" value="lay" /&gt;Application to Lay a Mooring&lt;br /&gt;           
                      &lt;/td&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;input type="submit" value="Upload file"&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>Where this script checks if it is a .docx and puts all the data into variables (a bit too large including PDO so I trimmed that):</p>
  
  <pre><code>&lt;?php
  include("includes/session.php");
  var_dump($_POST);
  // Check if a file has been uploaded
  if (isset($_FILES['file'])) {
      echo "&lt;pre&gt;";var_dump($_FILES);echo "&lt;/pre&gt;";
          // Connect to the database
          $database = $functions-&gt;pdoConnect();
  
          // Gather all required data
          $name = $_FILES['file']['name'];
          $mime = $_FILES['file']['type'];
          $data = file_get_contents($_FILES  ['file']['tmp_name']);
          $size = intval($_FILES['file']['size']);
          $description = $_POST['description'];
          if ($mime != "application/vnd.openxmlformats-officedocument.wordprocessingml.document") {
              die("The file was not a .docx! Upload was cancelled.");
          }
  </code></pre>
  
  <p>Is there something which may be interfering? Is there a bug I should be aware of? 
  **EDIT: **
  I am running PHP 5.5.6 if it helps</p>