title: Php upload file yields error code 4. Why?
body: <p>The HTML:</p>
  
  <pre><code>&lt;form action="formhandler.php" method="post" enctype="multipart/form-data"&gt;
      &lt;input type="file" name="file" /&gt;
      &lt;input type="submit" name="submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and doing a <code>print_r($_FILES)</code> in formhandler.php after choosing a file and clicking submit yields:</p>
  
  <pre><code>[file] =&gt; Array
      (
          [name] =&gt; 
          [type] =&gt; 
          [tmp_name] =&gt; 
          [error] =&gt; 4
          [size] =&gt; 0
      )
  </code></pre>
  
  <p>And error code 4, according to the manual stands for "UPLOAD_ERR_NO_FILE - No file was uploaded" but I can't figure out why it wasn't uploaded.</p>