title: Warning: getimagesize() [function.getimagesize]: Filename cannot be empty warning message?
body: <p>Up until recently I've been using some PHP to upload photos to a site. But suddenly it's started triggering all sorts of error messages.</p>
  
  <p>I use a form that on action runs the following code:</p>
  
  <pre><code>$uploaddir = "../../user_content/photo/";
  $allowed_ext = array("jpeg", "jpg", "gif", "png");
  
      if(isset($_POST["submit"])) {
          $file_temp = $_FILES['file']['tmp_name'];   
          $info = getimagesize($file_temp);
      } else {
          print "File not sent to server succesfully!";
          exit;
      }
  </code></pre>
  
  <p>The file upload part of the form has the following elements:</p>
  
  <pre><code>&lt;input name="file" type="file" class="photo_file_upload"&gt;
  </code></pre>
  
  <p>The submit button for uploading has the following attributes:</p>
  
  <pre><code>&lt;button type="submit" name="submit" class="photo_upload"&gt;Upload&lt;/button&gt;
  </code></pre>
  
  <p>But whenever I run this, I always get the following warning:</p>
  
  <pre><code>Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in (upload PHP file) on line 10
  </code></pre>
  
  <p>(line 10 is this part: $info = getimagesize($file_temp);)</p>
  
  <p>Anyone have any ideas on what the cause of this is?</p>