title: Large size image is not uploading in server using PHP
body: <p>In my website, I want to upload image using PHP in server. But this thing works fine with small size image but not with large size image. I want to upload only mobile clicked images. Here is my form to upload image</p>
  
  <pre><code>&lt;form action="newupload.php" enctype="multipart/form-data" method="post"&gt;
      &lt;div class="form-group"&gt;
          &lt;div id="image-cropper"&gt;
              &lt;input type="file" name="user_image" class="cropit-image-input"  style="font-weight: bold;" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;input type="text" name="title" class="input-round big-input" id="title-modal" placeholder="Enter your Image Title" required/&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;!-- required  --&gt;
          &lt;span class="required margin-three"&gt;*Please complete all fields correctly&lt;/span&gt;
          &lt;!-- end required  --&gt;
          &lt;p class="text-center"&gt;
              &lt;button class="btn btn-black no-margin-bottom btn-medium btn-round no-margin-top" type="submit" id="submitbtn"&gt;Submit&lt;/button&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>Here is my PHP script for uploading:</p>
  
  <pre><code>$errors = 0;
  
  error_reporting(E_ALL); 
  require_once 'mysqli_connect.php';
  session_start();
  
  $email = $_SESSION['user_email'];
  $q = "select * from user where u_email='$email'";
  $qres=mysqli_query($dbc,$q);
  $qrow=mysqli_fetch_array($qres,MYSQLI_ASSOC);
  $u_id=$qrow['u_id'];
  
  if ($_SERVER["REQUEST_METHOD"] == "POST") {
      if (!empty($_FILES['user_image']['name']) &amp;&amp; !empty($_POST['title'])) {
          $image = $_FILES['user_image']['name'];
          $uploadedfile = $_FILES['user_image']['tmp_name'];
          $image_title = $_POST['title'];
          $t = uniqid();
          $filenamee = 'user-'.$t;
          $path = 'uploaded/';
          $filename = $path.$filenamee.".jpg";
  
          if (move_uploaded_file($_FILES['user_image']['tmp_name'], $filename)) {
              $query = "insert into selfiepost (u_id,s_title,s_upload,upload_time) v       values ('$u_id','$image_title','$filename',now())";
              $res = mysqli_query($dbc, $query);
              if ($res) {
                  header('Location:home.php?insert=1');
              } else{
                   header('Location:home.php?insert=0');
              }
          } else {
              echo "Sorry, File not uploaded successfully. Please try again!!";
          }
      } else {
          echo "Files should not be empty!!";
      }
  }
  </code></pre>
  
  <p>My <code>php.ini</code> file contains only these five things:</p>
  
  <pre><code>upload_max_filesize 20M
  post_max_size 40M
  max_input_time 180
  max_execution_time 60
  memory_limit 48M
  </code></pre>