title: Simple $HTTP_POST_FILES nor $_FILES does not work - PHP
body: <p>I have done file upload many times, but got no idea on why this is not working.  Trying to do a file desc before upload but neither $HTTP_POST_FILES nor $_FILES does not seem to work.</p>
  
  <pre><code>  echo "Upload: " . $HTTP_POST_FILES["profilefilepic"]["name"] . "&lt;br&gt;";
    echo "Type: " . $HTTP_POST_FILES["profilefilepic"]["type"] . "&lt;br&gt;";
    echo "Size: " . ($HTTP_POST_FILES["profilefilepic"]["size"] / 1024) . " kB&lt;br&gt;";
    echo "Stored in: " . $HTTP_POST_FILES["profilefilepic"]["tmp_name"];
  
  
  &lt;form method="post" action=""&gt;
  &lt;input type="submit" name="changeorder" id="changeorder" value="Upload"&gt;
  &lt;input type="file" name="datafile" size="40" id="profilefilepic" name="profilefilepic"&gt;
  &lt;input type="hidden" name="profilefilepicname" id="profilefilepicname" value=""&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What is wrong here.</p>