Raise Drupal files upload limit

  1. In your Drupal site, go to admin/settings/uploads
  2. Raise upload limits. If the value you want to insert is greater than PHP allowed value:
  3. On bottom of your .htaccess file (drupal/.htaccess) add these lines:
    # upload settings
    # cfr. http://it.php.net/manual/it/function.ini-set.php
    php_value post_max_size 50M
    php_value upload_max_filesize 50M
    php_value memory_limit 128M

    Change values as you wish.
  4. Return to admin/settings/uploads and watch changes on PHP limit.

See also:

4 responses to “Raise Drupal files upload limit”

  1. Hi, I’m using a free host (include Apache 2, PHP 5, MySQL 5 and Drupal 6) I set the value in my .htaccess file as you told me. But it didnot work. Drupal threw this message when i was trying tu change the “Default maximum file size per upload” in Upload module config page.

    “Your PHP settings limit the maximum file size per upload to 1.46 MB.
    Depending on your server environment, these settings may be changed in the system-wide php.ini file, a php.ini file in your Drupal root directory, in your Drupal site’s settings.php file, or in the .htaccess file in your Drupal root directory.”

    How can I fix it?

    PS: I could not find the php.ini in my root Drupal folder.

%d bloggers like this: