title: how to upload more than 2mb file using codeigniter
body: <p>I am trying uploading a file which is more than 2mb even after setting maximum size in controller but still the file is not getting uploaded.please help to find the solution for this problem.</p>
  
  <p>Below is my code:</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>    $config['upload_path'] = './abc/';
      $config['allowed_types'] = '*';
      $config['max_filename'] = '255';
      $config['encrypt_name'] = FALSE;
      $config['overwrite'] = TRUE;
      //$config['max_size'] = '102400'; //100 MB
      $config['max_size']             = '25600';
      $config['max_width']            = '0';
      $config['max_height']           = '0';
      $config['file_name']=$newfilename;
  </code></pre>