php.ini max_upload_file size falling back to default 2M
<p>I have to upload 5.7MB database in drupal-7 using module "backup and migrate". But, when I upload the file it throws out following error:</p>

<pre><code>The file email839805758.zip could not be saved, because it exceeds 2 MB, the maximum allowed size for uploads.
</code></pre>

<p>I have changed <code>post_max_size = 20M</code> and u<code>pload_max_filesize = 40M</code> in php.ini file and created <code>user.ini</code> in /etc/php/5.6/apache2/conf.d/user.ini. and pasted post_max_size and <code>upload_max_filesize</code> greater than 2M. I have checked phpinfo(). It just gives the default value to 2M. Does anybody have any solution to such kind of scenerio in drupal 7?</p>

<p>I have found some additional stuff in drupal <code>backup_migrate.module</code> file which might be the barrier. Help me crack this function.</p>

<pre><code>  /**
  * A custom version of format size which treats 1GB as 1000 MB rather than 1024 MB
  * This is a more standard and expected version for storage (as opposed to memory).
  */
  function backup_migrate_format_size($size, $langcode = LANGUAGE_NONE)    {
  $precision = 2;
  $multiply = pow(10, $precision);

  if ($size == 0) {
  return t('0 bytes', array(), array('langcode' =&gt; $langcode));
   }
  if ($size &lt; 1024) {
  return format_plural($size, '1 byte', '@count bytes', array(),   array('langcode' =&gt; $langcode));
  }
  else {
  $size = ceil($size * $multiply / 1024);
  $string = '@size KB';
  if ($size &gt;= (1024 * $multiply)) {
  $size = ceil($size / 1024);
  $string = '@size MB';
  }
  if ($size &gt;= 1000 * $multiply) {
  $size = ceil($size / 1000);
  $string = '@size GB';
  }
  if ($size &gt;= 1000 * $multiply) {
  $size = ceil($size / 1000);
  $string = '@size TB';
  }
   return t($string, array('@size' =&gt; round($size/$multiply, $precision)), array('langcode' =&gt; $langcode));
  }

  }
</code></pre>