title: File upload PHP JPG issues
body: <p>I'm getting confused while working with an file upload HTML form and some PHP to handle the input. In the form i have two file selects for images. When uploading an .png file i can get the file size etc using $_FILES. But when i'm trying to upload an .jpg file, i can't get more then the filename, no size, type, temporary name.</p>
  
  <p>And when uploading two files at once, .png and .jpg, everything works for the .png file but not the .jpg. </p>
  
  <p>What am i missing here? Are there any "restrictions when using $_FILES with .jpg filetypes or something else that i'm not aware of?</p>
  
  <p>Example code: </p>
  
  <pre><code>    if (isset($_FILES['upload1'])) {            // JPG FILE
          $fileName1 = $_FILES['upload1']['name'];
          $fileSize1 = $_FILES['upload1']['size'];
          echo $fileName1;
          echo $fileSize1;
      }
      if (isset($_FILES['upload2'])) {            // PNG FILE
          $fileName2 = $_FILES['upload2']['name'];
          $fileSize2 = $_FILES['upload2']['size'];
          echo $fileName2;
          echo $fileSize2;
      }
  </code></pre>
  
  <p>outputs something like (without the brackets):</p>
  
  <pre><code>"filename1.jpg" "0" "filename2.png" "12313"
  </code></pre>
  
  <p>print_r($_FILES) outputs: <br />
  Array ( <br />
  [upload1] => Array ( <br />[name] => volvo1.png <br />
                       [type] => image/png <br />
                       [tmp_name] => C:\wamp\tmp\php14AD.tmp <br />
                       [error] => 0 <br />
                       [size] => 6380 )<br />
  <br />
  [upload2] => Array ( <br />[name] => IMG0379.JPG <br />
                       [type] => [tmp_name] => <br />
                       [error] => 1 <br />
                       [size] => 0 )<br />
  )</p>