php - upload file - filterting types to upload
<pre><code>&lt;?php
if (($_FILES["fileToUpload"]["type"] == "image/gif")
  || ($_FILES["fileToUpload"]["type"] == "image/jpeg")
  || ($_FILES["fileToUpload"]["type"] == "image/png" )
  &amp;&amp; ($_FILES["fileToUpload"]["size"] &lt; 10000))
  {
  move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],
    "http://www.nhl-statistics.com/scripts/upload" . $_FILES["fileToUpload"]["name"]);
  }
else
  {
  echo "Files must be either JPEG, GIF, or PNG and less than 10,000 kb";
  }
</code></pre>

<p>no matter what i enter it seems to go to the else statement.</p>
