title: PHP 8.1 $_FILES missing type property
body: <p>I am upgrading my website from PHP 7.4 to 8.1 which is causing an unusual issue with $_FILES. I'm trying to upload a new file but nothing happens. This issue cannot be regarding the file size as I'm trying to upload .txt files containing a single word.</p>
  <p><strong>Example of my code:</strong></p>
  <pre><code>&lt;form action=&quot;client.php&quot; method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot; onSubmit=&quot;javascript: return validateFile(this);&quot;&gt;
      &lt;div class=&quot;card-header&quot;&gt;
          Upload Section
      &lt;/div&gt;
      &lt;div class=&quot;card-body&quot;&gt;
          &lt;div class=&quot;position-relative form-group&quot;&gt;
              &lt;label &gt;Select file from local disk&lt;/label&gt;
              &lt;input  type=&quot;file&quot; name=&quot;test&quot; size=&quot;90&quot; maxlength=&quot;500&quot; class=&quot;form-control-file&quot;&gt;
          &lt;/div&gt;
          &lt;input class=&quot;mt-1 btn btn-primary&quot; name='Submit' type='submit' value='Upload File'&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  <p>When the from is posted the data within $_FILES is like so</p>
  <p><code>test={ name=&quot;test.txt, full_path=test.txt, type=&quot;&quot;, tmp_name=&quot;&quot;, error={int} 6, size={int} 0} </code></p>