Search

Monday 17 March 2014

Wordpress says >>The uploaded file exceeds the upload_max_filesize directive in php.ini.| Drupal says >>The file template.zip could not be saved, because it exceeds 2 MB, the maximum allowed size for uploads. in XAMPP

!!..Hello Readers..!!


Wordpress Error of maximum file upload in XAMPP.
Drupal Error of maximum file upload in XAMPP.

Follow Steps for complete Solution.

  1. Click on "Config >> Php.ini " from Apache Server in XAMPP.

  2. Click on "php.ini" and find "upload_max".

  3. Here, default maximum file size is 2M (2MB) change it to according to need and save it.
    for Example 100M, 999M, 10000M, etc.

    this will also work for Joomla and magento.

    Enjoy <<-??->>




5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hi,

    How about the post_max_size?

    How many MB will I put?

    Because when I uploading files I always encountered "failed".

    Hope for your help and immediate response.

    Thank you,
    Norvin Erea
    IT Support Engineer

    ReplyDelete
  4. Sorry for waiting...

    Depending on your host, changing these two PHP variables can be done in a number of places with the most likely being php.ini or .htaccess (depending on your hosting situation).

    For example, to increase the limit on uploaded files to 10 MB:

    Add the below to the relevant php.ini file (recommended, if you have access). Note that for some hosts this is a system-wide setting. However, for hosts running PHP as a CGI script with suexec (for example) you may be able to put these directives in a php.ini file in your Drupal or Wordpress root directory.

    upload_max_filesize = 10M
    post_max_size = 10M

    Add the below to your .htaccess file in your Drupal or Wordpress root directory.

    php_value upload_max_filesize 10M
    php_value post_max_size 10M

    If you get any problem than share it, i will give next response immediately.

    ReplyDelete