title: $_FILES is not empty but the file didn't upload
body: <p>i have a form to upload a file, the code to check if it arrives is here: </p>
  
  <pre><code>if (is_uploaded_file($_FILES['foto'] ['tmp_name'])){
     echo "file is valid and was uploaded";
     print_r($_FILES);
   }
  </code></pre>
  
  <p>and it says:</p>
  
  <pre><code> file is valid and was uploadedArray ( [foto] =&gt; 
   Array ( [name] =&gt; Penguins.jpg     [type] =&gt; image/jpeg [tmp_name]   
   =&gt; /var/www/uploads/phpf8ECTX [error] =&gt; 0 [size] =&gt; 777835 ) ) 
   Array ( [foto] =&gt; Array ( [name] =&gt; Penguins.jpg [type] =&gt; image/jpeg [tmp_name] 
  =&gt; /var/www/uploads/phpf8ECTX [error] =&gt; 0 [size] =&gt; 777835 ) ) array(1) { 
  ["foto"]=&gt; array(5) { ["name"]=&gt; string(12) "Penguins.jpg" ["type"]=&gt; string
  (10) "image/jpeg" ["tmp_name"]=&gt; string(26) "/var/www/uploads/phpf8ECTX" ["error"]
  =&gt; int(0) ["size"]=&gt; int(777835) } } 
  </code></pre>
  
  <p>but the file didnt arrive, the php.ini is configured correct and the /var/www/uploads directory have permissions to write for all users,i'm running apache2 in linux, any idea about what is wrong?
  thank you</p>