title: php code in wordpress for image uploading
body: <p>Please help with php code:</p>
  
  <p>I have following code what makes only 360x514 images to be uploaded only.
  My question is: how can I edit it to make any size uploadable without error message?</p>
  
  <pre><code>&lt;?php
  $MAXIMUM_FILESIZE = 5 * 1024 * 1024; 
  $uploaddir = './uploads/image/large_image/'; 
  $file = $uploaddir . basename($_FILES['image2']['name']); 
  $raw_file_name= $_FILES['image2']['tmp_name'];
  list($width, $height) = getimagesize($_FILES['image2']['tmp_name']);
  if ($width==360 &amp;&amp; $height==514) {
  if (move_uploaded_file($_FILES['image2']['tmp_name'], $file)) { 
  echo "success"; 
  } 
  else {
  echo "error";
  }
  }else {
  echo "size_error";
  }
  ?&gt;
  </code></pre>