title: How can I detect multi-part form data using PHP?
body: <p>I tried using:</p>
  
  <pre><code>    $this-&gt;method = $method = $_SERVER['REQUEST_METHOD']; 
  </code></pre>
  
  <p>but it returns</p>
  
  <p><code>POST</code></p>
  
  <p>It is in fact sent using the POST method, but it is multi-part meaning in my case atleast that both</p>
  
  <p><code>$_POST</code> and <code>$_FILE</code> are populated.</p>
  
  <p>Thank you.</p>