title: How don't direct use $_FILES Superglobal in PHP?
body: <p>I'm looking for an alternative to get the data inside the $_FILES due to a codacy issue</p>
  <p><a href="https://i.stack.imgur.com/bbLCH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bbLCH.png" alt="enter image description here" /></a></p>
  <p>I don't know how to don't use directly the superglobals.</p>
  <p>I can't use <code>filter_input</code> like I did for resolve the same issue with <code>$_POST</code></p>
  <p>Below this, my form :</p>
  <pre><code>&lt;form class=&quot;d-flex flex-column&quot; method=&quot;post&quot; action=&quot;/image/update/99/trick/144&quot; enctype=&quot;multipart/form-data&quot;&gt;
      &lt;input type=&quot;file&quot; name=&quot;newImg&quot;&gt;
      &lt;button type=&quot;submit&quot;&gt;Modifier l'image&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>