title: Photo upload not uploading files bigger than 2MB
body: <p>I have a php file upload in place in which the forms target is an iframe. </p>
  
  <p>It uploads files less than 2mb fine. But anything larger it will not upload. I cant see any reason behind this in the code.</p>
  
  <pre><code>&lt;div id="upload_wrapper"&gt;
  
  &lt;img src="../images/logo.png" alt="logo5" width="" height="" style="padding:0px;" /&gt;
  &lt;h3&gt;Profile picture upload&lt;/h3&gt;
  
    &lt;form id="upload" name="upload" enctype="multipart/form-data" method="post" action="index.php" target="upload_target"&gt;
      &lt;input name="folder" type="hidden" value="&lt;?php echo $folder ?&gt;"  /&gt;
      &lt;input name="filename" type="hidden" value="&lt;?php echo $filename ?&gt;"  /&gt;
      &lt;input name="uploaded_file" type="file" size="5120" id="uploaded_file"  /&gt;
      &lt;input id="sent" name="sent" type="submit"  value="Upload" /&gt;
    &lt;/form&gt;
  &lt;/div&gt;
  &lt;div id="loading" style="background:url(ajax-loader.gif) no-repeat left; height:50px; width:370px; display:none;"&gt;
    &lt;p style="margin-left:40px; padding-top:15px;"&gt;Uploading File... Please wait&lt;/p&gt;
  &lt;/div&gt;
  &lt;div id="image_wrapper" style="display:none;"&gt;&lt;p id="preview"&gt;&lt;/p&gt;&lt;/div&gt;
  &lt;iframe id="upload_target" name="upload_target" style="width:10px; height:10px; display:none"&gt;&lt;/iframe&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And heres the php upload code</p>
  
  <pre><code>if ($_SERVER['REQUEST_METHOD'] == 'POST') {
  
  $targetFolder = $_POST['folder'] . "/";
  $filename2 = $_POST['filename'];
  
  if (!is_dir($targetFolder)) 
  {
      mkdir($targetFolder, 0777);
  }
  
      $tempFile = $_FILES['uploaded_file']['tmp_name'];
      $targetPath = dirname(__FILE__) . '/' . $targetFolder;
      $targetFile = rtrim($targetPath,'/') . '/' . $_FILES['uploaded_file']['name'];
  
      // Validate the file type
      $fileTypes = array('jpg'); // File extensions
      $fileParts = pathinfo($_FILES['uploaded_file']['name']);
  
      if (in_array($fileParts['extension'],$fileTypes)) 
      {
          $uploadfile = $targetFolder. basename($filename2 .".".$fileParts['extension']);
           move_uploaded_file($tempFile,$uploadfile);
           $fileName = $uploadfile;
      }
  
      echo "&lt;div id='filename'&gt;$fileName&lt;/div&gt;";
  
  }
  </code></pre>